[14:42] <aladin_> hello, i have a big problem.. someone can tell to me the equivalent to "dpkg --force all" in apt?
[15:07] <maxb> ls
[15:07] <maxb> oops, sorry
[18:18] <Laibsch> I tried to cross-compile a kernel on an amd64 host for i386 with "fakeroot make-kpkg --initrd --append-to-version=.`date +%Y%m%d` --revision=r1 --cross-compile - --arch i386 kernel_image"
[18:18] <Laibsch> the resulting binary package is still amd64
[18:19] <Laibsch> what's wrong?
[22:16] <tuxfusion> Can someone help me on a very basic C issue ? I'm doing a tolower() in a loop over a char * , after I access the string again with that pointer , the string is empty ( second printf), whats wrong ? http://pastebin.com/f749f16ac
[22:18] <ln-> well... it would be wrong to tell it to you.
[22:19] <tuxfusion> beg your pardon ?
[22:19] <ln-> you learn from mistakes.
[22:20] <tuxfusion> wrong
[22:20] <ln-> but if i tell you what's wrong, then i did the thinking and you didn't.
[22:20] <tuxfusion> if you don't find the mistake you will never learn it
[22:20] <ln-> how long have you been thinking so far?
[22:21] <tuxfusion> 4 hours ?
[22:22] <ln-> the key to the answer is to figure out what does "mixer_name++;" actually mean.
[22:22] <tuxfusion> increment after assignment
[22:23] <tuxfusion> moving pointer on adress further
[22:24] <ln-> and where does a char* pointer (in general) point to?
[22:25] <tuxfusion> void
[22:25] <tuxfusion> assigned , to the first element
[22:26] <ln-> right
[22:29] <ln-> take a paper and pencil, and figure out what element of the array is the pointer pointing to at each stage.
[22:30] <tuxfusion> in a way i thought my loop would run until it hits '\0' if the pointer would stay there it would be plausible that it returns "" in console or '\0' but in no example i saw someone resetting the pointer to element [0] nor would i know how to do it , something with &mixer_name maybe but looks really odd
[22:32] <tuxfusion> i though my inner printf would tell me exactly this it prints correctly , my i calculated wrong
[22:33] <tuxfusion> s/my/maybe
[22:35] <tuxfusion> crap , thx i'm pointing to '\0'
[22:38] <ln-> a pointer doesn't carry its initial value, so you cannot "reset" it without having the initial value stored somewhere else.
[22:45] <tuxfusion> so this is the default approach , to sore the adress of the orifinal pointer , iterate and set it back manually ? it's jsut i haven't seen it in the examples so far but maybe bad luck
[22:48] <ln-> perhaps in those examples they don't use the pointer for anything after the loop so it doesn't matter