Defines | Functions
utils.h File Reference
#include <stdio.h>
Include dependency graph for utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define DIR_SEPARATOR   '/'

Functions

void my_basename (const char *file, char *dest)
void my_basename_no_suffix (const char *file, char *dest)
void my_no_suffix (const char *file, char *dest)
char * my_strdup (const char *s)
FILE * open_file_for_reading (const char *filename)
FILE * open_file_for_writing (const char *filename)

Define Documentation

#define DIR_SEPARATOR   '/'

Definition at line 18 of file utils.h.


Function Documentation

void my_basename ( const char *  file,
char *  dest 
)

Definition at line 32 of file utils.c.

void my_basename_no_suffix ( const char *  file,
char *  dest 
)

Definition at line 40 of file utils.c.

void my_no_suffix ( const char *  file,
char *  dest 
)

Definition at line 52 of file utils.c.

char* my_strdup ( const char *  s)

Our version of strdup.

Definition at line 61 of file utils.c.

FILE* open_file_for_reading ( const char *  filename)

Tries to open a file for reading; if filename == "-" or "stdin", returns standard input. An error message is printed in case of error.

Definition at line 19 of file utils.c.

FILE* open_file_for_writing ( const char *  filename)

Tries to open a file for reading; if filename == "-" | "stdout", returns standard output. If it's "stderr" same. An error message is printed in case of error.

Definition at line 25 of file utils.c.



csm
Author(s): Andrea Censi
autogenerated on Mon Jan 16 2017 03:48:29