I have some code that works if I pass it a string literal but not a const char * or char *.

Fuck you C, why you so moody?

Follow

So after this playing on my mind all day while playing with the kid I finally sat down to work out what was going on.

Tried to remember the GDB commands and bingo!

bloody newline!

That is the bug.

· · Web · 0 · 0 · 1
Sign in to participate in the conversation
Merveilles

Merveilles is a community project aimed at the establishment of new ways of speaking, seeing and organizing information — A culture that seeks augmentation through the arts of engineering and design. A warm welcome to any like-minded people who feel these ideals resonate with them.