PSXSDK
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
strings.h File Reference
#include <string.h>
#include <types.h>

Go to the source code of this file.

Macros

#define bcopy(src, dst, len)   memmove(dst,src,len)
 
#define bzero(ptr, len)   memset(ptr, 0, len)
 
#define bcmp(b1, b2, len)   memcmp(b1,b2,len)
 
#define index(s, c)   strchr(s, c)
 
#define rindex(s, c)   strrchr(s, c)
 

Functions

int ffs (int value)
 
char * index (const char *s, int c)
 
char * rindex (const char *s, int c)
 
unsigned int popcount (unsigned int value)
 Returns the number of bits set in the value.
 
unsigned int popcountl (unsigned long value)
 
unsigned int popcountll (unsigned long long value)
 
unsigned int popcount32 (uint32_t value)
 
unsigned int popcount64 (uint64_t value)
 
int strcasecmp (const char *s1, const char *s2)
 
int strncasecmp (const char *s1, const char *s2, size_t len)
 

Macro Definition Documentation

#define bcmp (   b1,
  b2,
  len 
)    memcmp(b1,b2,len)
#define bcopy (   src,
  dst,
  len 
)    memmove(dst,src,len)
#define bzero (   ptr,
  len 
)    memset(ptr, 0, len)
#define index (   s,
 
)    strchr(s, c)
#define rindex (   s,
 
)    strrchr(s, c)

Function Documentation

int ffs ( int  value)
char* index ( const char *  s,
int  c 
)
unsigned int popcount ( unsigned int  value)

Returns the number of bits set in the value.

Parameters
valueValue
Returns
Number of bits set in value
unsigned int popcount32 ( uint32_t  value)
unsigned int popcount64 ( uint64_t  value)
unsigned int popcountl ( unsigned long  value)
unsigned int popcountll ( unsigned long long  value)
char* rindex ( const char *  s,
int  c 
)
int strcasecmp ( const char *  s1,
const char *  s2 
)
int strncasecmp ( const char *  s1,
const char *  s2,
size_t  len 
)