Nilorea Library

- Main Page
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Macros
Functions
n_misc.c File Reference
`#include "n_misc.h"`
Include dependency graph for n_misc.c:

Go to the source code of this file.

## Functions

void | usage (char *name)
| Print program commands. More...
char ** | split (char *chaine, const char *delim, int vide)
| Split the strings into a an array of char *pointer ended by a NULL one. Max 256 splitted elements per call. More...
int | free_split_result (char ***tab)
| Free a split result allocated array. More...

## Function Documentation

int free_split_result | ( | char *** | tab | ) |

Free a split result allocated array.

Parameters

  tab | A pointer to a split result to free

Returns
  TRUE

Definition at line 124 of file n_misc.c.

char** split | ( | char * | chaine,
|  | const char * | delim,
|  | int | vide
| ) |  |

Split the strings into a an array of char *pointer ended by a NULL one. Max 256 splitted elements per call.

Split the strings into a an array of char *pointer , ended by a NULL one. Max 256 splitted elements per call.

Returns
  An array of strings to the new string.

Definition at line 39 of file n_misc.c.

void usage | ( | char * | name | ) |

Print program commands.

void usage( char *name )

Parameters

  name | program name to print in command usage

Definition at line 22 of file n_misc.c.