Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 135c37986f80dc92ed32cea000ca7143 > files > 1

libformat2-devel-1.5-3mdv2009.0.i586.rpm

#ifndef __FORMAT_H__
#define __FORMAT_H__

#include <stdio.h>  /* FILE */

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

  /* Returns 1 if language is supported by library. Otherwise 0 */
  int format_valid_lang(const char *language);

  /* exported function declarations for syntax highlighting of source code */
  /* All of these functions return a dynamically allocated string, so you  */
  /* MUST remember to free any strings you generate by calling these       */
  /* functions!!!                                                          */

  char *format_fd     ( int fd, const char *language );
  char *format_fp     ( FILE *fp, const char *language );
  char *format_file   ( const char *filename, const char *language );
  char *format_string ( const char *str, const char *language );

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* __FORMAT_H__ */