comparison src/xs_support.c @ 214:575686094eb1

Portability fixes
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 15 Dec 2004 11:02:02 +0000
parents 8b896d461fdb
children 57231fe14369
comparison
equal deleted inserted replaced
213:405b647cbd8d 214:575686094eb1
17 17
18 You should have received a copy of the GNU General Public License 18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software 19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 */ 21 */
22 22 #include "xmms-sid.h"
23 #include <string.h>
24 #include "xs_support.h" 23 #include "xs_support.h"
25 24
26 25
27 /* Copy a string 26 /* Copy a string
28 */ 27 */
122 121
123 inline void xs_findnum(gchar *pcStr, guint *piPos) 122 inline void xs_findnum(gchar *pcStr, guint *piPos)
124 { 123 {
125 while (pcStr[*piPos] && isdigit(pcStr[*piPos])) (*piPos)++; 124 while (pcStr[*piPos] && isdigit(pcStr[*piPos])) (*piPos)++;
126 } 125 }
126
127
128 #ifndef HAVE_MEMSET
129 void *xs_memset(void *p, int c, size_t n)
130 {
131 gchar *dp;
132
133 dp = (gchar *) p;
134 while (n--) { *dp = (gchar) c; n--; }
135
136 return p;
137 }
138 #endif