win: Use lower-case private definition of STORAGE_DEVICE_NUMBER
[syslinux/sherbszt.git] / dos / mystuff.h
blob253444139c166cbdf34b750b729f9d2a3772a530
1 #ifndef MYSTUFF_H
2 #define MYSTUFF_H
4 #include <inttypes.h>
6 #define NULL ((void *)0)
8 unsigned int skip_atou(const char **s);
9 unsigned int atou(const char *s);
11 static inline int isdigit(int ch)
13 return (ch >= '0') && (ch <= '9');
16 struct diskio {
17 uint32_t startsector;
18 uint16_t sectors;
19 uint16_t bufoffs, bufseg;
20 } __attribute__ ((packed));
21 int int25_read_sector(unsigned char drive, struct diskio *dio);
22 int int26_write_sector(unsigned char drive, struct diskio *dio);
24 #endif /* MYSTUFF_H */