libisdn
|
#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) |
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_printf | ( | struct strstream * | s, |
const char * | fmt, | ||
... | |||
) |
Definition at line 40 of file strstream.c.
References strstream::buf, strstream::offset, and strstream::size.
Referenced by Q931Die_BearerCap(), Q931Die_CalledNum(), Q931Die_CalledSub(), Q931Die_CallID(), Q931Die_CallingNum(), Q931Die_CallingSub(), Q931Die_CallState(), Q931Die_Cause(), Q931Die_ChangeStatus(), Q931Die_ChanID(), Q931Die_CongLevel(), Q931Die_DateTime(), Q931Die_Display(), Q931Die_Generic(), Q931Die_GenericDigits(), Q931Die_HLComp(), Q931Die_KeypadFac(), Q931Die_LLComp(), Q931Die_NetFac(), Q931Die_NotifInd(), Q931Die_ProgInd(), Q931Die_RepeatInd(), Q931Die_RestartInd(), Q931Die_RevChargeInd(), Q931Die_Segment(), Q931Die_SendComplete(), Q931Die_Signal(), Q931Die_TransNetSel(), Q931Die_UserUser(), and Q931Dmes_Generic().
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 | ||
) |
Definition at line 59 of file strstream.c.
References strstream::buf, strstream::offset, strstream::size, and strstream_left().
Referenced by Q931Die_CallID(), Q931Die_NetFac(), Q931Die_UserUser(), and Q931Dmes_Generic().
int strstream_size | ( | struct strstream * | s | ) |
Definition at line 103 of file strstream.c.
References strstream::size.