-
Notifications
You must be signed in to change notification settings - Fork 0
/
cs402.h
56 lines (47 loc) · 2.01 KB
/
cs402.h
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/******************************************************************************/
/* Important CSCI 402 usage information: */
/* */
/* This fils is part of CSCI 402 programming assignments at USC. */
/* 53616c7465645f5f2e8d450c0c5851acd538befe33744efca0f1c4f9fb5f */
/* 3c8feabc561a99e53d4d21951738da923cd1c7bbd11b30a1afb11172f80b */
/* 984b1acfbbf8fae6ea57e0583d2610a618379293cb1de8e1e9d07e6287e8 */
/* de7e82f3d48866aa2009b599e92c852f7dbf7a6e573f1c7228ca34b9f368 */
/* faaef0c0fcf294cb */
/* Please understand that you are NOT permitted to distribute or publically */
/* display a copy of this file (or ANY PART of it) for any reason. */
/* If anyone (including your prospective employer) asks you to post the code, */
/* you must inform them that you do NOT have permissions to do so. */
/* You are also NOT permitted to remove or alter this comment block. */
/* If this comment block is removed or altered in a submitted file, 20 points */
/* will be deducted. */
/******************************************************************************/
/*
* Author: William Chia-Wei Cheng (bill.cheng@acm.org)
*:
* @(#)$Id: cs402.h,v 1.1 2016/08/18 05:24:28 william Exp $
*/
#ifndef _CS402_H_
#define _CS402_H_
#ifndef NULL
#define NULL 0L
#endif /* ~NULL */
#ifndef TRUE
#define FALSE 0
#define TRUE 1
#endif /* ~TRUE */
#ifdef WIN32
#define DIR_SEP '\\'
#else /* ~WIN32 */
#define DIR_SEP '/'
#endif /* WIN32 */
#ifndef max
#define max(A,B) (((A)>(B)) ? (A) : (B))
#define min(A,B) (((A)>(B)) ? (B) : (A))
#endif /* ~max */
#ifndef round
#define round(X) (((X) >= 0) ? (int)((X)+0.5) : (int)((X)-0.5))
#endif /* ~round */
#ifndef MAXPATHLENGTH
#define MAXPATHLENGTH 256
#endif /* ~MAXPATHLENGTH */
#endif /*_CS402_H_*/