/*
  ArtToSpr Artworks/Draw to Sprite convertor
  Copyright (c) 1998 Tony Houghton

  This source is distributed under the GPL. Please see the file
  "COPYING" for details.
*/

/* Handling of strings with unusual terminators etc */
#ifndef __CRstring_h
#define __CRstring_h

/*Any ctrl char counts as terminator */

#ifdef __cplusplus
extern "C" {
#endif

extern char *CRstrcpy(char *s1, const char *s2);

/* strlenC counts NULL pointers as zero length strings */
extern int CRstrlen(const char *s);

extern char *CRstrncpy(char *s1, const char *s2, int n);
extern int CRstrincmp(const char *s1, const char *s2, int n);
extern char *CRstrcat(char *s1, const char *s2);

/* Changes terminator and returns result */
extern char *CRstrterm(char *s, char terminator);

/* Duplicates a string, using malloc */
extern char *CRstrdup(const char *s);


#ifdef __cplusplus
}
#endif

#endif
