File: moreio.h

package info (click to toggle)
sludge 2.2.2-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,852 kB
  • sloc: cpp: 32,432; sh: 1,237; makefile: 634; xml: 284
file content (36 lines) | stat: -rwxr-xr-x 737 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#include <stdint.h>

// Input

short getSigned (FILE * fp);
unsigned int get2bytes (FILE * fp);
int get2bytesReverse (FILE * fp);
int32_t get4bytes (FILE * fp);
char * readString (FILE * fp);
char * readText (FILE * fp);
char * grabWholeFile (char * theName);


// Output

void putSigned (short, FILE * fp);
void put2bytes (unsigned int numtoput, FILE * fp);
void put2bytesR (int numtoput, FILE * fp);
void put4bytes (int32_t i, FILE * fp);
void writeString (const char * txt, FILE * fp);
void putFloat (float f, FILE * fp);

// Misc

bool newerFile (char * newFileN, char * oldFileN);
void deleteString(char *);
char * copyString (const char * c);


#ifdef __cplusplus
}
#endif