hpstring.h File Reference

Standard String functions. More...

#include <hpctype.h>
#include <kos.h>

Go to the source code of this file.

Typedefs

typedef unsigned long long ULONGLONG
typedef long long LONGLONG

Functions

int strlen (const char *s)
 Length of s.
char * strcpy (char *dest, const char *src)
 Copy source to destination.
char * strncpy (char *dest, const char *src, size_t n)
 Copy n chars of src in dest.
char * strcat (char *dest, const char *src)
 Append source after enf of destination. */.
int strcmp (register const char *s1, register const char *s2)
 Compare s1 and s2 (<0 ==0 or >0).
int strncmp (const char *s1, const char *s2, int num)
 Compare n chars of s1 and s2 (<0 ==0 or >0).
char * itoa (int z, char *buff, int base)
 Convert int to a string with specific base.
char * utoa (unsigned z, char *buff, int base)
char * lltoa (LONGLONG, char *, int base)
char * ulltoa (ULONGLONG, char *, int base)
char * upper (char *t, const char *s)
char * strset (char *s, int fill)
 Set a string to a constant char fill or random in ['a'..'z'] if fill is zero.
char * str_unquote (char *s, char c)
char * strdup (const char *s)
char * lower (char *t, const char *s)
char * __dtoa (double x, char *buf, char exp_sym)
char * xpad (char *t, char *s, int n, int left, char c)
int atoi_base (char *, int base)
unsigned atoui_base (char *, int base)
LONGLONG atoll_base (char *, int base)
ULONGLONG atoull_base (char *, int base)
int atoi (char *)
unsigned atoui (char *)
LONGLONG atoll (char *)
char * ints (int z, int base)
char * uints (unsigned z, int base)
ULONGLONG atoull (char *)
double atof (const char *)
void * memcpy (void *out, const void *in, int n)
void memcpyw (void *dest, const void *source, int nwords)
void * memset (char *dest, int C, int LENGTH)
void memsetw (void *dest, int value, int nwords)
void * memmove (void *_dest, const void *_source, size_t nbytes)
char * strchr (const char *s, int c)
char * strncat (char *s1, const char *s2, size_t n)
char * strrchr (const char *s, int c)
size_t strcspn (const char *s1, const char *s2)
char * strpbrk (const char *s1, const char *s2)
char * strtok (char *s1, const char *s2)
char * strstr (const char *s1, const char *s2)
size_t strspn (const char *s1, const char *s2)


Detailed Description

Standard String functions.

Definition in file hpstring.h.


Typedef Documentation

typedef long long LONGLONG

Definition at line 49 of file hpstring.h.

typedef unsigned long long ULONGLONG

Definition at line 48 of file hpstring.h.


Function Documentation

char* __dtoa ( double  x,
char *  buf,
char  exp_sym 
)

double atof ( const char *   ) 

int atoi ( char *   ) 

int atoi_base ( char *  ,
int  base 
)

LONGLONG atoll ( char *   ) 

LONGLONG atoll_base ( char *  ,
int  base 
)

unsigned atoui ( char *   ) 

unsigned atoui_base ( char *  ,
int  base 
)

ULONGLONG atoull ( char *   ) 

ULONGLONG atoull_base ( char *  ,
int  base 
)

char* ints ( int  z,
int  base 
)

char* itoa ( int  z,
char *  buff,
int  base 
)

Convert int to a string with specific base.

char* lltoa ( LONGLONG  ,
char *  ,
int  base 
)

char* lower ( char *  t,
const char *  s 
)

void* memcpy ( void *  out,
const void *  in,
int  n 
)

void memcpyw ( void *  dest,
const void *  source,
int  nwords 
)

void* memmove ( void *  _dest,
const void *  _source,
size_t  nbytes 
)

void* memset ( char *  dest,
int  C,
int  LENGTH 
)

void memsetw ( void *  dest,
int  value,
int  nwords 
)

char* str_unquote ( char *  s,
char  c 
)

char* strcat ( char *  dest,
const char *  src 
)

Append source after enf of destination. */.

char* strchr ( const char *  s,
int  c 
)

int strcmp ( register const char *  s1,
register const char *  s2 
)

Compare s1 and s2 (<0 ==0 or >0).

char* strcpy ( char *  dest,
const char *  src 
)

Copy source to destination.

size_t strcspn ( const char *  s1,
const char *  s2 
)

char* strdup ( const char *  s  ) 

int strlen ( const char *  s  ) 

Length of s.

char* strncat ( char *  s1,
const char *  s2,
size_t  n 
)

int strncmp ( const char *  s1,
const char *  s2,
int  num 
)

Compare n chars of s1 and s2 (<0 ==0 or >0).

char* strncpy ( char *  dest,
const char *  src,
size_t  n 
)

Copy n chars of src in dest.

char* strpbrk ( const char *  s1,
const char *  s2 
)

char* strrchr ( const char *  s,
int  c 
)

char * strset ( char *  s,
int  fill 
)

Set a string to a constant char fill or random in ['a'..'z'] if fill is zero.

Parameters:
s pointer to string to be set
fill the value to fill in, zero means random
Return values:
pointer to string s

size_t strspn ( const char *  s1,
const char *  s2 
)

char* strstr ( const char *  s1,
const char *  s2 
)

char* strtok ( char *  s1,
const char *  s2 
)

char* uints ( unsigned  z,
int  base 
)

char* ulltoa ( ULONGLONG  ,
char *  ,
int  base 
)

char* upper ( char *  t,
const char *  s 
)

char* utoa ( unsigned  z,
char *  buff,
int  base 
)

char* xpad ( char *  t,
char *  s,
int  n,
int  left,
char  c 
)


Generated on Fri Feb 16 16:43:16 2007 for HP-GCCLibrary by  doxygen 1.5.0