Talk:Snippets

From C

Jump to: navigation, search

i'm beginning to think that these snippets might be a duplication of what is already in the faq --twkm 19:05, 27 Dec 2004 (PST) That can't hurt, as long as they point at the FAQ entiries, also. However, this page is vast - it really wants splitting up into bite-sized chunks. --Kate 00:05, 26 Sep 2005 (UTC)

I say we stuff commonly asked (in #c) code/frequently explained idioms etc. here.. --noselasd 03:30, 3 Jan 2005 (PST)

why have a bad typedef?

well, because the snippet is mostly about what you should not do. --twkm 19:43, 2 Jan 2005 (PST)

on the removal of the link to the generic linked lists, hash tables, and stacks example

<brandon_niemczyk> it was horrible code...
<brandon_niemczyk> i just didn't know that till i read that paper on casts ;)
<brandon_niemczyk> and i think i can say that.. since i wrote the code

edits made by 63.113.167.33 on 2005-02-25

as of 0245 some of the edits seem odd. here are my thoughts.

  • sorry about misspelling your name.
  • the text explains why the examples presented don't work, i'm not too sure why a comment is also needed.
  • what do you find non-working about int c = tolower(getchar());?
  • i'm not sure what text is being referenced for the description as to why struct item was renamed to struct item_.
  • the reserved namespace is str followed by a lower-case letter, thus str_tolower does not invade.
  • identifiers beginning with STR are not reserved, why rename it?
  • indentation in mediawiki doesn't work too well for code, i.e., the previous code did not 'overflow' for me and perhaps others. the replacement may flow onto multiple lines for some.
Personal tools