2000-01-18 18:30:24 -05:00
|
|
|
/*
|
|
|
|
|
* psql - the PostgreSQL interactive terminal
|
|
|
|
|
*
|
2000-01-29 11:58:54 -05:00
|
|
|
* Copyright 2000 by PostgreSQL Global Development Group
|
2000-01-18 18:30:24 -05:00
|
|
|
*
|
2000-02-07 18:10:11 -05:00
|
|
|
* $Header: /cvsroot/pgsql/src/bin/psql/stringutils.h,v 1.14 2000/02/07 23:10:07 petere Exp $
|
2000-01-18 18:30:24 -05:00
|
|
|
*/
|
1996-07-09 02:22:35 -04:00
|
|
|
#ifndef STRINGUTILS_H
|
|
|
|
|
#define STRINGUTILS_H
|
|
|
|
|
|
1999-11-04 16:56:02 -05:00
|
|
|
/* The cooler version of strtok() which knows about quotes and doesn't
|
|
|
|
|
* overwrite your input */
|
1999-11-04 18:14:30 -05:00
|
|
|
extern char *strtokx(const char *s,
|
|
|
|
|
const char *delim,
|
|
|
|
|
const char *quote,
|
2000-02-07 18:10:11 -05:00
|
|
|
int escape,
|
1999-11-04 18:14:30 -05:00
|
|
|
char *was_quoted,
|
2000-01-15 00:38:50 -05:00
|
|
|
unsigned int *token_pos,
|
|
|
|
|
int encoding);
|
1996-07-09 02:22:35 -04:00
|
|
|
|
1998-09-01 00:40:42 -04:00
|
|
|
#endif /* STRINGUTILS_H */
|