#include <windows.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <errno.h>
#include <fcntl.h>
#include <ctype.h>
#include <math.h>
#include <wctype.h>
#include <wchar.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <locale.h>
#include <signal.h>
#include <limits.h>
#include <float.h>
#include <iso646.h>
#include <assert.h>
#include <stdbool.h>
#include <process.h>
Go to the source code of this file.
◆ CHUNK_P
#define CHUNK_P (1 << 17) |
◆ uchar
#define uchar unsigned char |
◆ uint
#define uint unsigned int |
◆ ushort
#define ushort unsigned short |
◆ amanda_asciitowide_1_()
WCHAR * amanda_asciitowide_1_ |
( |
char * | pUTF8, |
|
|
WCHAR * | ar_temp ) |
To convert an utf-8 encoded filename to a wide string (WCHAR *), we provide two functions that are exactly the same because someone may use it in multi-thread code
- Parameters
-
pUTF8 | the input utf-8 encoded filename |
- Returns
- the static allocated WCHAR array with the filename as wide string
To convert an utf-8 encoded filename to a wide string (WCHAR *), we . provide two functions that are exactly the same because someone may use it in multi-thread code
- Parameters
-
pUTF8 | the input utf-8 encoded filename |
- Returns
- the static allocated WCHAR array with the filename as wide string
◆ ar_gettemppath_z()
char * ar_gettemppath_z |
( |
void | | ) |
|
This function will return the temp folder being used, if not set with set_temp_folder_z it will be the user temp folder
- Returns
- a string with the current temp folder
◆ detect_multi_volume_p()
int __fastcall detect_multi_volume_p |
( |
char * | filename_utf_8_p, |
|
|
char * | adjusted_filename_in_temp_p ) |
◆ get_extension_p()
void __fastcall get_extension_p |
( |
char * | filename_p, |
|
|
char * | extension_p ) |
◆ getfilesize_ar()
__int64 getfilesize_ar |
( |
char * | infile_ar | ) |
|
To get the file size, filename is utf-8
- Parameters
-
- Returns
- the size of the file or 0 in case of error or if the file is empty, if you need to know whether the file do exist use ispathfile function
◆ size_of_WCHAR_mem_r()
int size_of_WCHAR_mem_r |
( |
char * | in_string | ) |
|
◆ split_compressed_file_p()
int __stdcall split_compressed_file_p |
( |
int64_t | slice_in_bytes_p_ | ) |
|
◆ split_in_multiple_volumes_p()
int __fastcall split_in_multiple_volumes_p |
( |
char * | filename_utf_8_p | ) |
|
◆ stripfilenameandpath()
int stripfilenameandpath |
( |
char * | path, |
|
|
char * | onlypath, |
|
|
char * | onlyfilename ) |
It will split the path in folder and file (Windows based), UNC capable too
- Parameters
-
path | the input path |
onlypath | only the path, can be NULL if not required |
onlyfilename | only the filename, can be NULL if not required |
- Returns
- always 0
◆ strrstr()
char * strrstr |
( |
char * | s1, |
|
|
char * | s2 ) |
It will return the last occurrence of a string inside the string
- Parameters
-
s1 | the string to search, example: strrstr("my string to search", "string") it will return the initial address of 'string' |
s2 | the string to search inside s1 |
- Returns
- a pointer if the string was found or NULL otherwise
It will return the last occurrence of a string inside the string
- Parameters
-
s1 | the string to search |
s2 | the input string |
- Returns
- a pointer if the string was found or NULL otherwise
◆ slice_in_bytes_p
int64_t slice_in_bytes_p = 0 |