/***********************************************************************1* *2* This software is part of the ast package *3* Copyright (c) 1985-2011 AT&T Intellectual Property *4* and is licensed under the *5* Eclipse Public License, Version 1.0 *6* by AT&T Intellectual Property *7* *8* A copy of the License is available at *9* http://www.eclipse.org/org/documents/epl-v10.html *10* (with md5 checksum b35adb5213ca9657e911e9befb180842) *11* *12* Information and Software Systems Research *13* AT&T Research *14* Florham Park NJ *15* *16* Glenn Fowler <[email protected]> *17* David Korn <[email protected]> *18* Phong Vo <[email protected]> *19* *20***********************************************************************/21#ifndef _SFSTR_H22#define _SFSTR_H 12324#include <ast.h>2526typedef struct Sfstr_s27{28char* beg;29char* nxt;30char* end;31} Sfstr_t;3233#undef sfclose34#undef sfprintf35#undef sfprints36#undef sfputc37#undef sfputr38#undef sfstrbase39#undef sfstropen40#undef sfstrseek41#undef sfstrset42#undef sfstrtell43#undef sfstruse44#undef sfwrite4546extern int sfclose(Sfio_t*);47extern int sfprintf(Sfio_t*, const char*, ...);48extern char* sfprints(const char*, ...);49extern int sfputc(Sfio_t*, int);50extern int sfputr(Sfio_t*, const char*, int);51extern char* sfstrbase(Sfio_t*);52extern Sfio_t* sfstropen(void);53extern char* sfstrseek(Sfio_t*, int, int);54extern char* sfstrset(Sfio_t*, int);55extern int sfstrtell(Sfio_t*);56extern char* sfstruse(Sfio_t*);57extern int sfwrite(Sfio_t*, void*, int);5859#endif606162