Logo Search packages:      
Sourcecode: pymol version File versions

Util.h

/* 
A* -------------------------------------------------------------------
B* This file contains source code for the PyMOL computer program
C* copyright 1998-2000 by Warren Lyford Delano of DeLano Scientific. 
D* -------------------------------------------------------------------
E* It is unlawful to modify or remove this copyright notice.
F* -------------------------------------------------------------------
G* Please see the accompanying LICENSE file for further information. 
H* -------------------------------------------------------------------
I* Additional authors of this source file include:
-* 
-* 
-*
Z* -------------------------------------------------------------------
*/
#ifndef _H_Util
#define _H_Util

void UtilZeroMem(void *ptr,unsigned int howMuch);
void UtilCopyMem(void *dst,void *src,unsigned int howMuch);
void *UtilArrayMalloc(unsigned int *dim,int ndim,unsigned int atom_size);
char *UtilConcat(char *where,char *what);
void UtilNConcat(char *dst,char *str,int n);
void UtilConcatVLA(char **vla,int *cc,char *str);
void UtilFillVLA(char **vla,int *cc,char what,int len);
void UtilNCopy(char *dst,char *src,int n);
void UtilCleanStr(char *s);
int UtilCountStringVLA(char *vla);

double UtilGetSeconds(void);
void UtilInit(void);
typedef int UtilOrderFn(void *array,int l,int r);

void UtilSortIndex(int n,void *array,int *x,UtilOrderFn* fOrdered);
void UtilSortInPlace(void *array,int nItem,unsigned int itemSize,UtilOrderFn *fOrdered);
void UtilExpandArrayElements(void *src,void *dst,int n_entries,int old_rec_size,int new_rec_size);

#endif

Generated by  Doxygen 1.6.0   Back to index