Debian Codegraph @

macos/source/helpers.h

raw
1 /*
2 Copyright (c) 1990-2001 Info-ZIP. All rights reserved.
3
4 See the accompanying file LICENSE, version 2000-Apr-09 or later
5 (the contents of which are also included in zip.h) for terms of use.
6 If, for some reason, all these files are missing, the Info-ZIP license
7 also may be found at: ftp://ftp.info-zip.org/pub/infozip/license.html
8 */
9 #ifndef HELPERS_H
10 #define HELPERS_H 1
11
12 /* Convert a C string to a Pascal string */
13 unsigned char *CToPCpy(unsigned char *pstr, char *cstr);
14
15 /* Convert a Pascal string to a C string */
16 char *PToCCpy(unsigned char *pstr, char *cstr);
17
18 char *sstrcpy(char *to,const char *from);
19 char *sstrcat(char *to,const char *from);
20
21 char *StrCalloc(unsigned short size);
22 char *StrFree(char *strPtr);
23
24 char *sBit2Str(unsigned short value);
25
26 void print_extra_info(void);
27
28 int ParseArguments(char *s, char ***arg);
29 void PrintArguments(int argc, char **argv);
30
31 Boolean IsZipFile(char *name);
32 OSErr printerr(const char *msg, int cond, int err, int line, char *file,
33 const char *msg2);
34 int PrintUserHFSerr(int cond, int err, char *msg2);
35
36 short CheckMountedVolumes(char *FullPath);
37 void DoWarnUserDupVol(char *path);
38
39 void PrintFileInfo(void);
40
41 int stricmp(const char *p1, const char *p2);
42 void leftStatusString(char *status);
43 void rightStatusString(char *status);
44
45 Boolean isZipFile(FSSpec *fileToOpen);
46
47 unsigned long MacFileDate_to_UTime(unsigned long mactime);
48 Boolean CheckForSwitch(char *Switch, int argc, char **argv);
49
50 void MakeCompatibleString(char *MacOS_Str,
51 const char SpcChar1, const char SpcChar2,
52 const char SpcChar3, const char SpcChar4,
53 short CurrTextEncodingBase);
54
55 #define MAX_ARGS 25
56
57 #endif /* HELPERS_H */