X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fpool.h;h=dd7080a15b800806b801b3027a752533552e4461;hb=071bf8498aaa74c71d56617b683c07466f78febb;hp=117e0c5b7d5513c33c8bbdafce61b58d24d8f652;hpb=4944c86a9318bc5b5578ab145a95c116ffd2c9fd;p=pspp-builds.git diff --git a/src/pool.h b/src/pool.h index 117e0c5b..dd7080a1 100644 --- a/src/pool.h +++ b/src/pool.h @@ -36,10 +36,12 @@ struct pool_mark /* General routines. */ struct pool *pool_create (void); void pool_destroy (struct pool *); +void pool_clear (struct pool *); /* Suballocation routines. */ void *pool_alloc (struct pool *, size_t); char *pool_strdup (struct pool *, const char *); +char *pool_strndup (struct pool *, const char *, size_t); char *pool_strcat (struct pool *, const char *, ...); /* Standard allocation routines. */