URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 848 |
Rev 897 |
Line 29... |
Line 29... |
into STRING. */
|
into STRING. */
|
#ifndef whitespace
|
#ifndef whitespace
|
#define whitespace(a) ((a) == '\t' ? 1 : ((a) == ' '? 1 : 0))
|
#define whitespace(a) ((a) == '\t' ? 1 : ((a) == ' '? 1 : 0))
|
#endif
|
#endif
|
|
|
|
/* Strips white spaces at beginning and at the end of the string */
|
char *stripwhite (char *string);
|
char *stripwhite (char *string);
|
|
|
|
/* Duplicates the string */
|
char *dupstr (char *s);
|
char *dupstr (char *s);
|
|
|
|
/* This function is very similar to strncpy, except it null terminates the string */
|
|
char *strstrip (char *dst, const char *src, int n);
|
|
|
|
/* Returns n-th token from string */
|
char *strtoken(char *in, char *out, int which);
|
char *strtoken(char *in, char *out, int which);
|
|
|
/* Parses string line and puts up to maxparam parameters into argv[]; number of parameters is returned */
|
/* Parses string line and puts up to maxparam parameters into argv[]; number of parameters is returned */
|
int tokenize_line (char *str, char *argv[], int maxparam);
|
int tokenize_line (char *str, char *argv[], int maxparam);
|
|
|
No newline at end of file
|
No newline at end of file
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.