comparison src/util.h @ 59:e612b263934f noffle

[svn] Changed some variable types and used some casts to avoid compiler warnings about signedness. In general, int should be used for parameters for allowing a signedness assertion in the function.
author enz
date Fri, 12 May 2000 17:52:41 +0100
parents 125d79c9e586
children bf8c97460fd7
comparison
equal deleted inserted replaced
58:b4e6f7f96135 59:e612b263934f
1 /* 1 /*
2 util.h 2 util.h
3 3
4 Miscellaneous helper functions. 4 Miscellaneous helper functions.
5 5
6 $Id: util.h 60 2000-05-09 22:28:38Z uh1763 $ 6 $Id: util.h 65 2000-05-12 16:52:41Z enz $
7 */ 7 */
8 8
9 #ifndef UTL_H 9 #ifndef UTL_H
10 #define UTL_H 10 #define UTL_H
11 11
81 81
82 void 82 void
83 Utl_cpyStr( Str dst, const char *src ); 83 Utl_cpyStr( Str dst, const char *src );
84 84
85 void 85 void
86 Utl_cpyStrN( Str dst, const char *src, size_t n ); 86 Utl_cpyStrN( Str dst, const char *src, int n );
87 87
88 void 88 void
89 Utl_catStr( Str dst, const char *src ); 89 Utl_catStr( Str dst, const char *src );
90 90
91 void 91 void
92 Utl_catStrN( Str dst, const char *src, size_t n ); 92 Utl_catStrN( Str dst, const char *src, int n );
93 93
94 /* String allocation and copying. */ 94 /* String allocation and copying. */
95 void 95 void
96 Utl_allocAndCpy( char **dst, const char *src ); 96 Utl_allocAndCpy( char **dst, const char *src );
97 97