Re: apr_bucket_split data remains

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I see such code as the example you gave in various places. However, this
> bit of code (attached) shows me that I cannot simply printf the data.
> Again, I am probably doing something wrong.
>

The output looks right to me but maybe I am misunderstanding the
intent of the example.

output: _ASCII_String0_!__ASCII_String4_!ASCII_String1_!_ASCII_String2_!_ASCII_String3_!
                                        ^ extra underscore is b1
                                          ^ b4 inserted heree
                                                                     ^
b1_1 and the missing underscore from the split and


You start with b0,b1,b2,b3 and iterate over the brigade.

While looking at b1, you split it at index 1 into two buckets. b1 is
now just "_" and b1_1 is the rest.

b0, b1, b1_1, b2, b3

You then insert b4 after b1:

b0, b1, b1_1, b2, b3

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux