File: fprint.h

package info (click to toggle)
libsmi 0.4.8%2Bdfsg2-17
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 13,972 kB
  • sloc: ansic: 49,659; java: 13,722; sh: 9,311; yacc: 8,705; lex: 1,448; javascript: 544; makefile: 347; perl: 117
file content (36 lines) | stat: -rw-r--r-- 957 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * fprint.h --
 *
 *      Header-file for commonly used utility functions to produce
 *      nicely indented output.
 *
 * Copyright (c) 1999 Frank Strauss, Technical University of Braunschweig.
 * Copyright (c) 2007 J. Schoenwaelder, Jacobs University Bremen.
 *
 * See the file "COPYING" for information on usage and redistribution
 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 *
 * @(#) $Id: fprint.h 7289 2007-09-28 06:48:22Z schoenw $
 */

#ifndef _FPRINT_H
#define _FPRINT_H

#include <stdio.h>
#include <stdarg.h>

extern int fprint_current_column;
extern int fprint_indent_max;
extern int fprint_indent_texts;

extern void fprintInit(int indent_max, int indent_texts);
	
extern void fprint(FILE *f, char *fmt, ...);

extern void fprintSegment(FILE *f, int column, char *string, int length);

extern void fprintWrapped(FILE *f, int column, char *string);

extern void fprintMultilineString(FILE *f, int column, const char *s);

#endif