OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_47/] [or1ksim/] [cpu/] [common/] [parse.h] - Diff between revs 1308 and 1350

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 1308 Rev 1350
Line 32... Line 32...
#endif
#endif
 
 
/* Strips white spaces at beginning and at the end of the string */
/* 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);
 
 
 
/* This function is very similar to strncpy, except it null terminates the string */
/* This function is very similar to strncpy, except it null terminates the string */
char *strstrip (char *dst, const char *src, int n);
char *strstrip (char *dst, const char *src, int n);
 
 
/* Returns n-th token from string */
/* 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);
 
 
/* Loads file to memory starting at address startaddr and returns freemem. */
/* Loads file to memory starting at address startaddr and returns freemem. */
unsigned long loadcode(char *filename, unsigned long startaddr, unsigned long virtphy_transl);
unsigned long loadcode(char *filename, oraddr_t startaddr, oraddr_t virtphy_transl);
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.