Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
util.c File Reference
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include "lkc.h"

Go to the source code of this file.

Functions

struct filefile_lookup (const char *name)
 
int file_write_dep (const char *name)
 
struct gstr str_new (void)
 
struct gstr str_assign (const char *s)
 
void str_free (struct gstr *gs)
 
void str_append (struct gstr *gs, const char *s)
 
void str_printf (struct gstr *gs, const char *fmt,...)
 
const charstr_get (struct gstr *gs)
 

Function Documentation

struct file* file_lookup ( const char name)
read

Definition at line 14 of file util.c.

int file_write_dep ( const char name)

Definition at line 35 of file util.c.

void str_append ( struct gstr gs,
const char s 
)

Definition at line 111 of file util.c.

struct gstr str_assign ( const char s)
read

Definition at line 92 of file util.c.

void str_free ( struct gstr gs)

Definition at line 102 of file util.c.

const char* str_get ( struct gstr gs)

Definition at line 136 of file util.c.

struct gstr str_new ( void  )
read

Definition at line 81 of file util.c.

void str_printf ( struct gstr gs,
const char fmt,
  ... 
)

Definition at line 125 of file util.c.