Rev 355 | Rev 440 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 355 | Rev 439 | ||
---|---|---|---|
Line 15... | Line 15... | ||
15 | You should have received a copy of the GNU General Public License |
15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software |
16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | */ |
18 | */ |
19 | 19 | ||
- | 20 | #ifndef STR_H_ |
|
- | 21 | #define STR_H_ |
|
- | 22 | ||
20 | unsigned char *myc2pstr(char *s); |
23 | unsigned char *myc2pstr(char *s); |
21 | char *myp2cstr(unsigned char *s); |
24 | char *myp2cstr(unsigned char *s); |
22 | char *myp2cstrcpy(char *dst,const unsigned char *src); |
25 | char *myp2cstrcpy(char *dst,const unsigned char *src); |
23 | unsigned char *myc2pstrcpy(unsigned char *dst,const char *src); |
26 | unsigned char *myc2pstrcpy(unsigned char *dst,const char *src); |
24 | char *cat(char *d,char *s); // returns pointer after last character copied |
27 | char *cat(char *d,char *s); // returns pointer after last character copied |
Line 28... | Line 31... | ||
28 | unsigned char *PLcstrcat(unsigned char * str1,const char * s2); |
31 | unsigned char *PLcstrcat(unsigned char * str1,const char * s2); |
29 | unsigned char *PLcstrcpy(unsigned char *s1,const char *s2); |
32 | unsigned char *PLcstrcpy(unsigned char *s1,const char *s2); |
30 | 33 | ||
31 | /* in-place conversion from Pascal to C string */ |
34 | /* in-place conversion from Pascal to C string */ |
32 | #define INPLACEP2CSTR(s) ((s)[*(s)+1] = 0,(char*)(s)+1) |
35 | #define INPLACEP2CSTR(s) ((s)[*(s)+1] = 0,(char*)(s)+1) |
- | 36 | ||
- | 37 | #endif |