summaryrefslogtreecommitdiff
path: root/reverse-engineering/dosbox_snif/utils.h
blob: ee8441fe6502ac6bcb64267711fd4b3d60b8dc80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef _UTILS_H
#define _UTILS_H

#include <stdint.h>

int tcp_client_init(char host[], char port[], int *sockfd);
void flatten(char *seg_off);
int hexascii2bin(char src[], void *dst, int maxlen);
int bit_position(uint16_t flags);
int imin(int a, int b);

#endif /*_UTIL_H*/