Back to index

salome-kernel  6.5.0
Functions
HDFnObjects.c File Reference
#include "hdfi.h"
#include <stdlib.h>

Go to the source code of this file.

Functions

hdf_err Num (hdf_idt id, const char *name, void *data)
hdf_err HDFnObjects (hdf_idt fid, const char *path, int *n)

Function Documentation

hdf_err HDFnObjects ( hdf_idt  fid,
const char *  path,
int *  n 
)

Definition at line 46 of file HDFnObjects.c.

{
  int idx;
  int m = 0;

  if ((idx  = H5Giterate(fid,path,NULL,Num,(void*)&m)) < 0)
    return -1;

  *n = (int) m;

  return 0;
}

Here is the call graph for this function:

hdf_err Num ( hdf_idt  id,
const char *  name,
void *  data 
)

Definition at line 59 of file HDFnObjects.c.

{
  int *count;
  
  count = (int *) data;
  (*count)++;

  return 0;
}

Here is the caller graph for this function: