FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
sys_getexename.c
Go to the documentation of this file.
1
/* get the executable's name */
2
3
#include "../fb.h"
4
#include <windows.h>
5
6
char
*
fb_hGetExeName
(
char
*dst, ssize_t maxlen )
7
{
8
GetModuleFileName( GetModuleHandle(
NULL
), dst, maxlen );
9
10
char
*
p
= strrchr( dst,
'\\'
);
11
if
( p !=
NULL
)
12
++
p
;
13
else
14
p = dst;
15
16
return
p
;
17
}
rtlib
win32
sys_getexename.c
Generated on Thu Jan 23 2014 19:40:10 for FreeBASIC by
1.8.4