libisdn
strstream.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include "strstream.h"

Go to the source code of this file.

Functions

int strstream_init (struct strstream *s, const int size)
int strstream_init_static (struct strstream *s, char *buf, const int size)
int strstream_printf (struct strstream *s, const char *fmt,...)
int strstream_puts (struct strstream *s, const char *str)
int strstream_printhex (struct strstream *s, const char *buf, const int size)
int strstream_length (struct strstream *s)
int strstream_size (struct strstream *s)
int strstream_left (struct strstream *s)
const char * strstream_get (struct strstream *s)

Function Documentation

const char* strstream_get ( struct strstream s)

Definition at line 113 of file strstream.c.

References strstream::buf.

Referenced by Q931Dmes_Generic().

int strstream_init ( struct strstream s,
const int  size 
)

Definition at line 13 of file strstream.c.

References strstream::buf, strstream::offset, and strstream::size.

int strstream_init_static ( struct strstream s,
char *  buf,
const int  size 
)

Definition at line 28 of file strstream.c.

References strstream::buf, strstream::offset, and strstream::size.

Referenced by Q931Dmes_Generic().

int strstream_left ( struct strstream s)

Definition at line 108 of file strstream.c.

References strstream::offset, and strstream::size.

Referenced by strstream_printhex(), and strstream_puts().

int strstream_length ( struct strstream s)

Definition at line 98 of file strstream.c.

References strstream::offset.

int strstream_printhex ( struct strstream s,
const char *  buf,
const int  size 
)

Definition at line 73 of file strstream.c.

References strstream::buf, strstream::offset, and strstream_left().

Referenced by Q931Die_CallID(), Q931Die_NetFac(), and Q931Die_UserUser().

int strstream_puts ( struct strstream s,
const char *  str 
)
int strstream_size ( struct strstream s)

Definition at line 103 of file strstream.c.

References strstream::size.