Mercurial > hg > xmms-sid
comparison src/xs_support.c @ 56:6a3ce7260ae1
Changed some standard functions to glib ones
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 22 Jun 2003 00:17:04 +0000 |
parents | 3518ca5c8b0f |
children | 85811bcd049e |
comparison
equal
deleted
inserted
replaced
55:e3708b2bbc5f | 56:6a3ce7260ae1 |
---|---|
81 | 81 |
82 return 0; | 82 return 0; |
83 } | 83 } |
84 | 84 |
85 | 85 |
86 gchar *xs_strrchr(gchar *pcStr, gchar ch) | |
87 { | |
88 gchar *lastPos = NULL; | |
89 | |
90 while (*pcStr) | |
91 { | |
92 if (*pcStr == ch) lastPos = pcStr; | |
93 pcStr++; | |
94 } | |
95 | |
96 return lastPos; | |
97 } | |
98 | |
99 | |
86 inline void xs_findnext(gchar *pcStr, gint *piPos) | 100 inline void xs_findnext(gchar *pcStr, gint *piPos) |
87 { | 101 { |
88 /* Terminating NULL-character is not whitespace! */ | 102 /* Terminating NULL-character is not whitespace! */ |
89 while (isspace(pcStr[*piPos])) (*piPos)++; | 103 while (isspace(pcStr[*piPos])) (*piPos)++; |
90 } | 104 } |