I'm now of the opinion that this is done at the wrong level in the stack and needs to be redone later; but it works for now. There's a regression in `open`, but I can't see why.
18 lines
342 B
C
18 lines
342 B
C
/*
|
|
* utils.h
|
|
*
|
|
* little generally useful functions which aren't in any way special to PSSE.
|
|
*
|
|
* (c) 2019 Simon Brooke <simon@journeyman.cc>
|
|
* Licensed under GPL version 2.0, or, at your option, any later version.
|
|
*/
|
|
|
|
#ifndef __psse_utils_h
|
|
#define __psse_utils_h
|
|
|
|
int index_of( char c, const char *s );
|
|
|
|
char *trim( char *s );
|
|
|
|
#endif
|