News for hackers. Stuff that matters.
Re:What is your favourite C programming trick? by mansr on Friday October 14, 2011 @10:39AM (#3111321)
I think you meant

    int value = c - '0';
Also, remember that sizeof("string") includes the null terminator while strlen() does not.

There are no comments on this comment yet.