Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (37 sloc) 1.509 kB
/* Copyright (c) 2001, Stanford University
* All rights reserved.
*
* See the file LICENSE.txt for information on redistributing this software.
*/
#ifndef CR_STRING_H
#define CR_STRING_H
#ifdef __cplusplus
extern "C" {
#endif
char *crStrdup( const char *str );
char *crStrndup( const char *str, unsigned int len );
int crStrlen( const char *str );
int crStrcmp( const char *str1, const char *str2 );
int crStrncmp( const char *str1, const char *str2, int n );
int crStrcasecmp( const char *str1, const char *str2 );
void crStrcpy( char *dst, const char *src );
void crStrncpy( char *dst, const char *src, unsigned int len );
void crStrcat( char *dst, const char *src );
char *crStrjoin( const char *src1, const char *src2 );
char *crStrjoin3( const char *src1, const char *src2, const char *src3 );
char *crStrstr( const char *str, const char *pat );
char *crStrchr( const char *str, char c );
char *crStrrchr( const char *str, char c );
int crStrToInt( const char *str );
float crStrToFloat( const char *str );
char **crStrSplit( const char *str, const char *splitstr );
char **crStrSplitn( const char *str, const char *splitstr, int n );
void crFreeStrings( char **strings );
char *crStrIntersect( const char *s1, const char *s2 );
int crIsDigit( char c );
void crBytesToString( char *string, int nstring, void *data, int ndata );
void crWordsToString( char *string, int nstring, void *data, int ndata );
#ifdef __cplusplus
}
#endif
#endif /* CR_STRING_H */
Jump to Line
Something went wrong with that request. Please try again.