/srv/irclogs.ubuntu.com/2009/08/30/#ubuntu-kernel.txt

aladin_hello, i have a big problem.. someone can tell to me the equivalent to "dpkg --force all" in apt?14:42
maxbls15:07
maxboops, sorry15:07
LaibschI 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
Laibschthe resulting binary package is still amd6418:18
Laibschwhat's wrong?18:19
tuxfusionCan 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/f749f16ac22:16
ln-well... it would be wrong to tell it to you.22:18
tuxfusionbeg your pardon ?22:19
ln-you learn from mistakes.22:19
tuxfusionwrong22:20
ln-but if i tell you what's wrong, then i did the thinking and you didn't.22:20
tuxfusionif you don't find the mistake you will never learn it22:20
ln-how long have you been thinking so far?22:20
tuxfusion4 hours ?22:21
ln-the key to the answer is to figure out what does "mixer_name++;" actually mean.22:22
tuxfusionincrement after assignment22:22
tuxfusionmoving pointer on adress further22:23
ln-and where does a char* pointer (in general) point to?22:24
tuxfusionvoid22:25
tuxfusionassigned , to the first element22:25
ln-right22:26
ln-take a paper and pencil, and figure out what element of the array is the pointer pointing to at each stage.22:29
tuxfusionin 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 odd22:30
tuxfusioni though my inner printf would tell me exactly this it prints correctly , my i calculated wrong22:32
tuxfusions/my/maybe22:33
tuxfusioncrap , thx i'm pointing to '\0'22:35
ln-a pointer doesn't carry its initial value, so you cannot "reset" it without having the initial value stored somewhere else.22:38
tuxfusionso 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 luck22:45
ln-perhaps in those examples they don't use the pointer for anything after the loop so it doesn't matter22:48

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!