MCPcopy Create free account
hub / github.com/dborth/fceugx / IsZipFile

Function IsZipFile

source/gcunzip.cpp:84–93  ·  view source on GitHub ↗

* IsZipFile * * Returns TRUE when 0x504b0304 is first four characters of buffer ***************************************************************************/

Source from the content-addressed store, hash-verified

82 * Returns TRUE when 0x504b0304 is first four characters of buffer
83 ***************************************************************************/
84int
85IsZipFile (char *buffer)
86{
87 unsigned int *check = (unsigned int *) buffer;
88
89 if (check[0] == 0x504b0304)
90 return 1;
91
92 return 0;
93}
94
95/*****************************************************************************
96* UnZipBuffer

Callers 1

LoadFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected