/[public]/psiconv/trunk/lib/psiconv/common.h
ViewVC logotype

Diff of /psiconv/trunk/lib/psiconv/common.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 173 Revision 270
1/* 1/*
2 common.h - Part of psiconv, a PSION 5 file formats converter 2 common.h - Part of psiconv, a PSION 5 file formats converter
3 Copyright (c) 1999, 2000 Frodo Looijaard <frodol@dds.nl> 3 Copyright (c) 1999, 2000-2005 Frodo Looijaard <frodo@frodo.looijaard.name>
4 4
5 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or 7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version. 8 (at your option) any later version.
22 22
23#ifndef PSICONV_COMMON_H 23#ifndef PSICONV_COMMON_H
24#define PSICONV_COMMON_H 24#define PSICONV_COMMON_H
25 25
26#include <psiconv/general.h> 26#include <psiconv/general.h>
27#include <psiconv/configuration.h>
28#include <psiconv/unicode.h>
27 29
28#ifdef __cplusplus 30#ifdef __cplusplus
29extern "C" { 31extern "C" {
30#endif /* __cplusplus */ 32#endif /* __cplusplus */
31 33
32/* *************** 34/* ***************
33 * misc.c * 35 * misc.c *
34 *************** */ 36 *************** */
35 37
36/* This function returns a copy of a string, that contains no ASCII codes 38/* This function returns a copy of a Unicode string, converted to plain ASCII.
39 Anything codepage dependent (> 128) is sanitized away.
37 that are not printable. You should free this string yourself when you are 40 You should free this string yourself when you are
38 done with it. Returns NULL if there is not enough memory left. */ 41 done with it. Returns NULL if there is not enough memory left. */
39extern char *psiconv_make_printable(const char *s); 42extern char *psiconv_make_printable(const psiconv_config config,
43 const psiconv_string_t s);
40 44
41 45
42/* ************** 46/* **************
43 * checkuid.c * 47 * checkuid.c *
44 ************** */ 48 ************** */

Legend:
Removed from v.173  
changed lines
  Added in v.270

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26