[ekg2-commit] ekg2: stuff.c (HEAD) [darkjames]
CVS commit
cvs w toxygen.net
Czw, 6 Wrz 2007, 01:48:11 CEST
Module name: ekg2
Changes by: darkjames 2007-09-06 01:48:09
Modified files:
stuff.c
Log message:
cleanup.
Index: stuff.c
===================================================================
RCS file: /home/cvs/ekg2/ekg/stuff.c,v
diff -d -u -r1.212 -r1.213
--- stuff.c 4 Sep 2007 19:50:02 -0000 1.212
+++ stuff.c 5 Sep 2007 23:48:09 -0000 1.213
@@ -2814,16 +2814,12 @@
void xstrtr(char *text, char from, char to)
{
- if (!text || !from) /* 'to' might be \0 */
+ if (!text || !from)
return;
while (*text++) {
if (*text == from) {
*text = to;
-#if 0 /* if we want to be more C-like than tr-like, uncomment this */
- if (!to) /* if we put \0, we just cut the string */
- break;
-#endif
}
}
}
Więcej informacji o liście dyskusyjnej ekg2-commit