Menu

[0a35e6]: / src / rtlib / win32 / sys_getexename.c  Maximize  Restore  History

Download this file

18 lines (13 with data), 275 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
/* get the executable's name */
#include "../fb.h"
#include <windows.h>
char *fb_hGetExeName( char *dst, ssize_t maxlen )
{
GetModuleFileName( GetModuleHandle( NULL ), dst, maxlen );
char *p = strrchr( dst, '\\' );
if( p != NULL )
++p;
else
p = dst;
return p;
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.