Main Page | Modules | Directories | File List | Globals | Related Pages

string.c File Reference

Implements String type. More...

#include <linux/config.h>

Go to the source code of this file.

Defines

#define STP_STRING_SIZE   2048
 Maximum string size allowed in Strings.
#define _stp_string_cat(str1, str2)
 ConCATenate (append) a String or C string to a String.

Typedefs

typedef string * String

Functions

String _stp_string_init (int num)
 Initialize a String for our use.
void _stp_sprintf (String str, const char *fmt,...)
 Sprintf into a String.
void _stp_vsprintf (String str, const char *fmt, va_list args)
 Vsprintf into a String Use this if your function already has a va_list.
void _stp_string_cat_cstr (String str1, const char *str2)
 ConCATenate (append) a C string to a String.
void _stp_string_cat_string (String str1, String str2)
 ConCATenate (append) a String to a String.
char * _stp_string_ptr (String str)
 Get a pointer to String's buffer For rare cases when a C string is needed and you have a String.


Detailed Description

Implements String type.

Definition in file string.c.