~ubuntu-branches/ubuntu/maverick/freecell-solver/maverick

« back to all changes in this revision

Viewing changes to app_str.h

  • Committer: Bazaar Package Importer
  • Author(s): RISKO Gergely
  • Date: 2002-04-06 11:35:18 UTC
  • Revision ID: james.westby@ubuntu.com-20020406113518-n398kvu45dixasoh
Tags: upstream-2.4.1
ImportĀ upstreamĀ versionĀ 2.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <string.h>
 
2
#include <stdio.h>
 
3
#include <stdarg.h>
 
4
#include <stdlib.h>
 
5
 
 
6
#ifndef __APP_STR_H
 
7
#define __APP_STR_H
 
8
 
 
9
#ifdef __cplusplus
 
10
extern "C" {
 
11
#endif
 
12
 
 
13
struct freecell_solver_append_string_struct
 
14
{
 
15
    char * buffer;
 
16
    char * end_of_buffer;
 
17
    int max_size;
 
18
    int size_of_margin;
 
19
};
 
20
 
 
21
typedef struct freecell_solver_append_string_struct freecell_solver_append_string_t;
 
22
 
 
23
extern freecell_solver_append_string_t * freecell_solver_append_string_alloc(int size_margin);
 
24
 
 
25
extern int freecell_solver_append_string_sprintf(
 
26
    freecell_solver_append_string_t * app_str,
 
27
    char * format,
 
28
    ...
 
29
    );
 
30
 
 
31
extern char * freecell_solver_append_string_finalize(
 
32
    freecell_solver_append_string_t * app_str
 
33
    );
 
34
 
 
35
#ifdef __cplusplus
 
36
}
 
37
#endif
 
38
 
 
39
#endif /* #ifndef __APP_STR_H */