nzb.c File Reference

#include
#include
#include
#include "nntpgrab_utils.h"

Functions

NZB *  nntpgrab_utils_parse_nzb_file (const char *contents, char **errmsg)
  Parse the contents of a NZB file and put the information in a structure.
void  nntpgrab_utils_nzb_file_free (NZB *nzbfile)
  Free a structure containing details about a NZB file.

Function Documentation

void nntpgrab_utils_nzb_file_free ( NZB *  nzbfile  ) 

Free a structure containing details about a NZB file.

Parameters:
nzbfile  The structure containing information about the NZB file

NZB* nntpgrab_utils_parse_nzb_file ( const char *  contents,
char **  errmsg  
)

Parse the contents of a NZB file and put the information in a structure.

Parameters:
contents  The contents of the NZB file
errmsg  Pointer to a char*. If an errors occurs, the reason will be placed in this field. Needs to be freed using ngfree(). Can be NULL to ignore errors
Returns:
A structure containing information about the NZB file. Needs to be free'd using the function nntpgrab_utils_nzb_file_free(). If the value NULL is returned, an error occured and errmsg will be set


Generated on Thu May 21 21:25:05 2009 for NNTPGrab by  1.5.4