/Users/maurits/Documents/studie/afstuderen/biosphere/common/str.h File Reference

#include <biosphere.h>
#include "list.h"

Include dependency graph for str.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bs_bool streq (const char *s1, const char *s2)
void strtokenize (bs_list *result, const char *string, const char *delim)


Function Documentation

bs_bool streq ( const char *  s1,
const char *  s2 
)

Test for string equality.

Parameters:
s1 First string
s2 Second string
Returns:
True iff both strings are equal.

Definition at line 7 of file str.c.

void strtokenize ( bs_list result,
const char *  string,
const char *  delim 
)

Tokenize a given string given the set of delimiters and return a list of the tokens. The tokens are allocated from the list provided inside the result list.

Parameters:
result List to put the resulting tokens in
string String to tokenize
delim Delimiters to use. If NULL, whitespace is the delimiter.

Definition at line 21 of file str.c.

References list_append(), bs_list::pool, and pool.

Referenced by bsmod_password_init(), and bsmod_stat_handle_avgminmax().

Here is the call graph for this function:


Generated on Tue Jul 17 09:51:00 2007 for Bio-SPHERE by  doxygen 1.5.1