comparison src/xs_support.h @ 226:858c09f59011

Moved some functions from xs_length.c here.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 19 Dec 2004 15:25:03 +0000
parents 57231fe14369
children 7833df935239
comparison
equal deleted inserted replaced
225:2986069309c6 226:858c09f59011
4 #ifdef __cplusplus 4 #ifdef __cplusplus
5 extern "C" { 5 extern "C" {
6 #endif 6 #endif
7 7
8 #include "xmms-sid.h" 8 #include "xmms-sid.h"
9 #include <stdio.h>
9 10
10 #ifdef HAVE_STRING_H 11 #ifdef HAVE_STRING_H
11 #include <string.h> 12 #include <string.h>
12 #else 13 #else
13 #ifdef HAVE_STRINGS_H 14 #ifdef HAVE_STRINGS_H
25 26
26 27
27 /* 28 /*
28 * Functions 29 * Functions
29 */ 30 */
31 guint16 xs_rd_be16(FILE *);
32 guint32 xs_rd_be32(FILE *);
33 size_t xs_rd_str(FILE *, gchar *, size_t);
30 gchar *xs_strncpy(gchar *, gchar *, size_t); 34 gchar *xs_strncpy(gchar *, gchar *, size_t);
31 gint xs_pstrcpy(gchar **, const gchar *); 35 gint xs_pstrcpy(gchar **, const gchar *);
32 gint xs_pstrcat(gchar **, const gchar *); 36 gint xs_pstrcat(gchar **, const gchar *);
33 gchar *xs_strrchr(gchar *, gchar); 37 gchar *xs_strrchr(gchar *, gchar);
34 inline void xs_findnext(gchar *, guint *); 38 inline void xs_findnext(gchar *, guint *);