Imported Upstream version 0.5
[pysam.git] / pysam / cvcf.pxd
1 cdef extern from "stdlib.h":
2     void free(void *)
3     void *malloc(size_t)       
4     void *calloc(size_t,size_t)
5     void *realloc(void *,size_t)
6     int c_abs "abs" (int)  
7     int c_abs "abs" (int)
8     int atoi( char *nptr)
9     long atol( char *nptr)
10     double atof( char *nptr)
11
12 cdef extern from "Python.h":
13     ctypedef struct FILE
14     FILE* PyFile_AsFile(object)
15     char *fgets(char *str, int size, FILE *ifile)
16     int feof(FILE *stream)
17     size_t strlen(char *s)
18     size_t getline(char **lineptr, size_t *n, FILE *stream)
19     char *strstr(char *, char *)
20     char *strchr(char *string, int c)
21     int fileno(FILE *stream)
22
23 cdef extern from "string.h":
24   int strcmp(char *s1, char *s2)
25   int strncmp(char *s1,char *s2,size_t len)
26   char *strcpy(char *dest,char *src)
27   char *strncpy(char *dest,char *src, size_t len)
28   char *strdup(char *)
29   char *strcat(char *,char *)
30   size_t strlen(char *s)
31   int memcmp( void * s1, void *s2, size_t len )
32   void *memcpy(void *dest, void *src, size_t n)
33   void *memchr(void *s, int c, size_t n)
34
35 cdef extern from "stdint.h":
36   ctypedef int int64_t
37   ctypedef int int32_t
38   ctypedef int uint32_t
39   ctypedef int uint8_t
40   ctypedef int uint64_t
41