Category : Miscellaneous Language Source Code
Archive   : MAKE15.ZIP
Filename : TSTRING.H

 
Output of file : TSTRING.H contained in archive : MAKE15.ZIP
/*
* tstring.h
*
* 88-10-01 v1.0 created by greg yachuk, placed in the public domain
* 88-10-06 v1.1 changed prerequisite list handling
* 88-11-11 v1.2 fixed some bugs and added environment variables
* 89-07-12 v1.3 stop appending shell commands, and flush output
* 89-08-01 v1.4 AB lots of new options and code
* 89-10-30 v1.5 greggy -f -S -q options, took some changes from v1.4
*
*/
#define tnew(t) ((t *) talloc(sizeof(t)))
#define tfree(t) (free((char *) t))

#define tstrcat(s,p) (strcat(strcpy(talloc(strlen(s)+strlen(p)+1),(s)),(p)))
#define tstrcpy(s) (strcpy(talloc(strlen(s)+1), (s)))

#ifdef __STDC__
extern char *talloc(int n);
extern char *trealloc(char *s, int n);
extern char *tstrncpy(char *s, int n);
extern int terror(int n, char *s);
extern char *tstrspan(char *str);
extern char *tunquote(char *str);
extern char *tsplit(char *s, char *seps, char **dp);
extern char *token(char *s, char *sep, char *schar);
extern char **tokenize(char *input);
extern char *tgets(FILE * fd);
#else
extern char *talloc();
extern char *trealloc();
extern char *tstrncpy();
extern int terror();
extern char *tstrspan();
extern char *tunquote();
extern char *tsplit();
extern char *token();
extern char **tokenize();
extern char *tgets();
#endif


  3 Responses to “Category : Miscellaneous Language Source Code
Archive   : MAKE15.ZIP
Filename : TSTRING.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/