#ifndef HEADER_CURL_SERVER_GETPART_H
#define HEADER_CURL_SERVER_GETPART_H

#include "server_setup.h"

#define GPE_NO_BUFFER_SPACE -2
#define GPE_OUT_OF_MEMORY   -1
#define GPE_OK               0
#define GPE_END_OF_FILE      1

int getpart(char **outbuf, size_t *outlen,
            const char *main, const char *sub, FILE *stream);

#endif /* HEADER_CURL_SERVER_GETPART_H */
