/usr/include/styx/sink.h is in styx-dev 2.0.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | /* ------------------------------------------------------------------------ */
/* */
/* [sink.h] Type: Sink */
/* */
/* Copyright (c) 1993 by Doelle, Manns */
/* ------------------------------------------------------------------------ */
/* File generated by 'ctoh'. Don't change manually. */
#ifndef sink_INCL
#define sink_INCL
#include "standard.h"
#ifdef __cplusplus
extern "C" {
#endif
/*
This module [sink] implements a dynamic sink i.e. string stream.
It uses the printf-konform formatting facility.
Note: Float and double values aren't supported yet.
*/
/* ---------------------------- The Type ---------------------------------- */
AbstractType( Sink ); /* Abstract sink / string stream type */
/* ---------------------------- Basics ------------------------------------ */
Sink Sink_open(void); /* creates a new sink */
void Sink_putc(Sink s, char c); /* adds character 'c' to sink 's' */
void Sink_puts(Sink s, c_string str); /* adds string 'str' to sink 's' */
void Sink_puts_raw(Sink s, c_string str)
/* adds string 'str' in a printable format to sink 's' */
;
c_string Sink_close(Sink s)
/* closes and converts sink 's' into a string;
allocs memory
*/
;
c_bool Sink_empty(Sink s); /* whether sink 's' is empty */
/* ---------------------------- Printing ---------------------------------- */
void xultoa_aux(Sink dst, unsigned long value, int radix)
/* converts and adds long 'value' to sink 'dst' */
;
c_string xultoa(unsigned long value, int radix)
/* converts long 'value' into a string; allocs memory */
;
void Sink_vprintf(Sink sink, c_string format, va_list args)
/* like 'vfprintf'
The text resulting from 'format' and arguments 'args'
will be added to 'sink'.
*/
;
void Sink_printf(Sink sink, c_string format, ...)
/* like 'fprintf'
The text resulting from 'format' and arguments '...'
will be added to 'sink'.
*/
;
c_string Str_printf(c_string format, ...)
/* like 'sprintf'
with resulting string from 'format' and arguments '...';
allocs memory
*/
;
#ifdef __cplusplus
}
#endif
#endif
|