/usr/include/yalecad/string.h is in libycadgraywolf-dev 0.1.4+20170307gite1bf319-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | /* -----------------------------------------------------------------
"@(#) string.h version 1.7 3/6/92"
FILE: string.h
DESCRIPTION:Insert file for string library routines.
DATE: Mar 16, 1989
REVISIONS: Tue Oct 23 01:29:24 EDT 1990 - added string prototypes.
----------------------------------------------------------------- */
#ifndef YSTRING_H
#define YSTRING_H
#include <yalecad/base.h>
extern char *Ystrclone( P1(char *str) ) ;
/*
Function:
Clone a string by allocating memory. User must free memory when done.
*/
extern char **Ystrparser( P3(char *str, char *delimiters,INT *numtokens ) ) ;
/*
Function:
This string parsing function uses strtok to break up the string
into tokens delimited by the set of characters given in the delimiter
string. Numtokens is set to the number of parsed tokens. The function
returns a pointer to an array of all the tokens each of which has
been terminated with EOS. This function destroys the given string
so remember to copy the string if you need the original string for
future use.
*/
extern char *Yremove_lblanks( P1(char *bufferptr) ) ;
/*
Function:
Remove leading blanks and tabs from a string.
*/
/*
Function:
Very often used string functions that are defined by system.
See man pages for details.
*/
#ifndef __GNUC__
extern char *strcat( P2( char *str1, char *str2 ) ) ;
extern char *strncat( P3( char *str1, char *str2, INT n ) ) ;
extern char *strcpy( P2( char *str1, char *str2 ) ) ;
extern char *strncpy( P3( char *str1, char *str2, INT n) ) ;
extern char *strtok( P2( char *str, char *delimiters ) ) ;
extern char *strchr( P2( char *str, char c ) ) ;
extern char *strrchr( P2( char *str, char c ) ) ;
extern char *index( P2( char *str, char c ) ) ;
extern char *rindex( P2( char *str, char c ) ) ;
extern unsigned int strlen( P1( char *str) ) ;
extern INT strcmp( P2( char *str1, char *str2 ) ) ;
extern INT strncmp( P3( char *str1, char *str2, INT n ) ) ;
#endif /* __GNUCC__ */
#endif /* YSTRING_H */
|