LibGame  v0.4.0
The LG Game Engine - Copyright (C) 2024 ETMSoftware
misc.c File Reference

Functions

const char * get_libetm_info (unsigned int i)
 
void dump_libetm_info ()
 
zboolean question (const char *str)
 
char * basename2 (const char *path)
 
char * dirname2 (const char *path)
 

Detailed Description

 ...

Function Documentation

◆ get_libetm_info()

const char* get_libetm_info ( unsigned int  i)

get_libetm_info( O ) = version num 1 = copyright 2 = license 1/3 3 = license 2/3 4 = license 3/3 5 = compiled date > 5 = NULL

◆ dump_libetm_info()

void dump_libetm_info ( )

Dump libetm info

◆ question()

zboolean question ( const char *  str)

In CLI mode

◆ basename2()

char* basename2 ( const char *  path)

Re-implementation of basename() for Linux AND Android - GNU (NOT POSIX) version

Original string is not modified

Parameters
path
Returns
Path basename

◆ dirname2()

char* dirname2 ( const char *  path)

"dirname()" implementation

Original string is not modified

Return string may be NULL if OOM - you should check it first

If not NULL, string must be freed afterwards with free2() or l_str_free()

Parameters
path
Returns
Path dirname