comparison src/xs_support.h @ 452:aec9f4beb401

New file reading functions.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 24 Jan 2007 21:57:04 +0000
parents 933b9ea5923e
children 00a32ab5887d
comparison
equal deleted inserted replaced
451:50247245e2ca 452:aec9f4beb401
23 #ifndef HAVE_FSEEKO 23 #ifndef HAVE_FSEEKO
24 #define fseeko fseek 24 #define fseeko fseek
25 #define ftello ftell 25 #define ftello ftell
26 #endif 26 #endif
27 27
28 /* 28
29 * Functions 29 #define t_xs_file FILE
30
31
32 /* Functions
30 */ 33 */
31 guint16 xs_rd_be16(FILE *); 34 t_xs_file *xs_fopen(gchar *, const gchar *);
32 guint32 xs_rd_be32(FILE *); 35 gint xs_fclose(t_xs_file *);
33 size_t xs_rd_str(FILE *, gchar *, size_t); 36 gint xs_fgetc(t_xs_file *);
37 guint16 xs_fread_be16(t_xs_file *);
38 guint32 xs_fread_be32(t_xs_file *);
39 size_t xs_fread(void *, size_t, size_t, t_xs_file *);
40 gint xs_fgets(gchar *, gint, t_xs_file *);
41
34 42
35 gchar *xs_strncpy(gchar *, gchar *, size_t); 43 gchar *xs_strncpy(gchar *, gchar *, size_t);
36 gint xs_pstrcpy(gchar **, const gchar *); 44 gint xs_pstrcpy(gchar **, const gchar *);
37 gint xs_pstrcat(gchar **, const gchar *); 45 gint xs_pstrcat(gchar **, const gchar *);
38 void xs_pnstrcat(gchar *, size_t, gchar *); 46 void xs_pnstrcat(gchar *, size_t, gchar *);