| iMatix home page | << | < | > | >> |
![]() Version 1.91 |
Filename: sflstr.h
Package: Standard Function Library (SFL)
Written: 92/10/25 iMatix SFL project team sfl@imatix.com
Revised: 97/10/02
Copyright: Copyright (c) 1991-98 iMatix
Provides various string-handling functions. Some of these functions are available on some but not all platforms; others are useful tools for string handling.
sflstr.h defines these symbols, possibly conditionally:
Symbol: | Defined as: |
---|---|
CPY | 0 |
IGNORECASE | 0 |
PTR | 1 |
SENCECASE | 1 |
_SFLSTR_INCLUDED | TRUE |
checkargcnt(reqnum) | ((argc-1)>=(reqnum)?1:0) |
cstrcpy(dest,src) | {*dest=src;*(dest+1)='\0';} |
deletechar(strbuf,pos) | strcpy((strbuf+pos),(strbuf+pos+1)) |
deletechars(strbuf,pos,cnt) | strcpy((strbuf+pos),(strbuf+pos+cnt)) |
getcommandlinearg(argnum) | ((argnum)<=(argc-1))?argv[argnum]:"" |
mstrncpy(dest,src,len) | {strncpy(dest,src,len);*(dest+len)='\0';} |
numofcmdargs() | ((argc-1)>0?argc-1:0) |
| << | < | > | >> |
![]() |