Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3050788
output.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
993 B
Referenced Files
None
Subscribers
None
output.h
View Options
#ifndef ANT_OUTPUT_H
#define ANT_OUTPUT_H
#include
<stdarg.h>
#include
<stdbool.h>
#include
<stddef.h>
#include
<stdio.h>
typedef
struct
{
char
*
data
;
size_t
len
;
size_t
cap
;
bool
failed
;
}
ant_output_buffer_t
;
typedef
struct
{
FILE
*
stream
;
ant_output_buffer_t
buffer
;
}
ant_output_stream_t
;
ant_output_stream_t
*
ant_output_stream
(
FILE
*
stream
);
void
ant_output_stream_begin
(
ant_output_stream_t
*
out
);
bool
ant_output_stream_reserve
(
ant_output_stream_t
*
out
,
size_t
extra
);
bool
ant_output_stream_append
(
ant_output_stream_t
*
out
,
const
void
*
data
,
size_t
len
);
bool
ant_output_stream_append_cstr
(
ant_output_stream_t
*
out
,
const
char
*
str
);
bool
ant_output_stream_putc
(
ant_output_stream_t
*
out
,
char
ch
);
bool
ant_output_stream_appendfv
(
ant_output_stream_t
*
out
,
const
char
*
fmt
,
va_list
ap
);
__attribute__
((
format
(
printf
,
2
,
3
)))
bool
ant_output_stream_appendf
(
ant_output_stream_t
*
out
,
const
char
*
fmt
,
...);
bool
ant_output_stream_flush
(
ant_output_stream_t
*
out
);
#endif
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Fri, Apr 3, 2:49 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
521477
Default Alt Text
output.h (993 B)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment