File: px_misc.h

package info (click to toggle)
hk-classes 0.8.2-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 10,872 kB
  • ctags: 16,819
  • sloc: cpp: 90,990; ansic: 78,016; sh: 8,385; python: 3,793; makefile: 292
file content (27 lines) | stat: -rw-r--r-- 1,071 bytes parent folder | download | duplicates (9)
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
#ifndef __PX_MISC_H__
#define __PX_MISC_H__
extern void put_long_le(char *cp, long lval);
extern long get_long_le(const char *cp);
extern unsigned short int get_short_le(const char *cp);
extern short int get_short_le_s(const char *cp);
extern void put_short_le(char *cp, short int sval);
extern void put_double_le(char *cp, double fval);
extern double get_double_le(const char *cp);

extern void put_long_be(char *cp, long lval);
extern long get_long_be(const char *cp);
extern short int get_short_be(const char *cp);
extern void put_short_be(char *cp, short int sval);
extern void put_double_be(char *cp, double fval);
extern double get_double_be(const char *cp);

extern void copy_fill(char *dp, char *sp, int len);
extern void copy_crimp(char *dp, char *sp, int len);
extern void px_set_date(char *cp, int year, int month, int day);
extern int px_date_year(char *cp);
extern int px_date_month(char *cp);
extern int px_date_day(char *cp);
extern char *px_cur_date(char *cp);
extern int px_get_date(char *cp);
extern void hex_dump(FILE *outfp, char *p, int len);
#endif