HPCToolkit
hpcfmt.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "hpcfmt.h"
#include "hpcio.h"
#include <include/uint.h>
Include dependency graph for hpcfmt.c:

Go to the source code of this file.

Functions

int hpcfmt_str_fread (char **str, FILE *infs, hpcfmt_alloc_fn alloc)
 
int hpcfmt_str_fwrite (const char *str, FILE *outfs)
 
void hpcfmt_str_free (const char *str, hpcfmt_free_fn dealloc)
 
int hpcfmt_fread (void *data, size_t size, FILE *infs)
 
int hpcfmt_fwrite (void *data, size_t size, FILE *outfs)
 
int hpcfmt_nvpair_fwrite (hpcfmt_nvpair_t *nvp, FILE *fs)
 
int hpcfmt_nvpairs_vfwrite (FILE *out, va_list args)
 
int hpcfmt_nvpair_fread (hpcfmt_nvpair_t *inp, FILE *infs, hpcfmt_alloc_fn alloc)
 
int hpcfmt_nvpair_fprint (hpcfmt_nvpair_t *nvp, FILE *fs, const char *pre)
 
int hpcfmt_nvpairList_fread (HPCFMT_List(hpcfmt_nvpair_t) *nvps, FILE *infs, hpcfmt_alloc_fn alloc)
 
int hpcfmt_nvpairList_fprint (const HPCFMT_List(hpcfmt_nvpair_t) *nvps, FILE *fs, const char *pre)
 
const char * hpcfmt_nvpairList_search (const HPCFMT_List(hpcfmt_nvpair_t) *nvps, const char *name)
 
void hpcfmt_nvpairList_free (HPCFMT_List(hpcfmt_nvpair_t) *nvps, hpcfmt_free_fn dealloc)
 

Function Documentation

◆ hpcfmt_fread()

int hpcfmt_fread ( void *  data,
size_t  size,
FILE *  infs 
)

Definition at line 144 of file hpcfmt.c.

Here is the call graph for this function:

◆ hpcfmt_fwrite()

int hpcfmt_fwrite ( void *  data,
size_t  size,
FILE *  outfs 
)

Definition at line 155 of file hpcfmt.c.

Here is the call graph for this function:

◆ hpcfmt_nvpair_fprint()

int hpcfmt_nvpair_fprint ( hpcfmt_nvpair_t nvp,
FILE *  fs,
const char *  pre 
)

Definition at line 225 of file hpcfmt.c.

Here is the caller graph for this function:

◆ hpcfmt_nvpair_fread()

int hpcfmt_nvpair_fread ( hpcfmt_nvpair_t inp,
FILE *  infs,
hpcfmt_alloc_fn  alloc 
)

Definition at line 215 of file hpcfmt.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hpcfmt_nvpair_fwrite()

int hpcfmt_nvpair_fwrite ( hpcfmt_nvpair_t nvp,
FILE *  fs 
)

Definition at line 169 of file hpcfmt.c.

Here is the call graph for this function:

◆ hpcfmt_nvpairList_fprint()

int hpcfmt_nvpairList_fprint ( const HPCFMT_List(hpcfmt_nvpair_t) *  nvps,
FILE *  fs,
const char *  pre 
)

Definition at line 252 of file hpcfmt.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hpcfmt_nvpairList_fread()

int hpcfmt_nvpairList_fread ( HPCFMT_List(hpcfmt_nvpair_t) *  nvps,
FILE *  infs,
hpcfmt_alloc_fn  alloc 
)

Definition at line 237 of file hpcfmt.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hpcfmt_nvpairList_free()

void hpcfmt_nvpairList_free ( HPCFMT_List(hpcfmt_nvpair_t) *  nvps,
hpcfmt_free_fn  dealloc 
)

Definition at line 276 of file hpcfmt.c.

Here is the caller graph for this function:

◆ hpcfmt_nvpairList_search()

const char* hpcfmt_nvpairList_search ( const HPCFMT_List(hpcfmt_nvpair_t) *  nvps,
const char *  name 
)

Definition at line 263 of file hpcfmt.c.

Here is the caller graph for this function:

◆ hpcfmt_nvpairs_vfwrite()

int hpcfmt_nvpairs_vfwrite ( FILE *  out,
va_list  args 
)

Definition at line 188 of file hpcfmt.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hpcfmt_str_fread()

int hpcfmt_str_fread ( char **  str,
FILE *  infs,
hpcfmt_alloc_fn  alloc 
)

Definition at line 87 of file hpcfmt.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hpcfmt_str_free()

void hpcfmt_str_free ( const char *  str,
hpcfmt_free_fn  dealloc 
)

Definition at line 132 of file hpcfmt.c.

Here is the caller graph for this function:

◆ hpcfmt_str_fwrite()

int hpcfmt_str_fwrite ( const char *  str,
FILE *  outfs 
)

Definition at line 115 of file hpcfmt.c.

Here is the call graph for this function:
Here is the caller graph for this function: