stringutils.h 539 Bytes
Newer Older
Peter Eisentraut's avatar
Peter Eisentraut committed
1 2 3
/*
 * psql - the PostgreSQL interactive terminal
 *
4
 * Copyright 2000 by PostgreSQL Global Development Group
Peter Eisentraut's avatar
Peter Eisentraut committed
5
 *
6
 * $Header: /cvsroot/pgsql/src/bin/psql/stringutils.h,v 1.13 2000/01/29 16:58:49 petere Exp $
Peter Eisentraut's avatar
Peter Eisentraut committed
7
 */
8 9 10
#ifndef STRINGUTILS_H
#define STRINGUTILS_H

11 12
/* The cooler version of strtok() which knows about quotes and doesn't
 * overwrite your input */
Bruce Momjian's avatar
Bruce Momjian committed
13 14 15 16 17
extern char *strtokx(const char *s,
		const char *delim,
		const char *quote,
		char escape,
		char *was_quoted,
18 19
		unsigned int *token_pos,
		int encoding);
20

21
#endif	 /* STRINGUTILS_H */