Basic headers file

Previous topic - Next topic

MrTAToad

I've put all the standard C functions I use into one file, which you may find useful.

[attachment deleted by admin]

MrTAToad

#1
Only if you use the headers file - which I don't.  This is an alternative to it, although it only allows access to standard C functions, and no operating system stuff...

Kitty Hello

You should have made that with IMPORT now and a shiny .gbas file ;)

MrTAToad

#3
Quite true - didn't think of IMPORT :)

However, I did try it with tmpnam :

Code (glbasic) Select
IMPORT "C" char *tmpnam(char *str)

and I just keep getting a syntax error...

Schranz0r

I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

MrTAToad

Tried it with that too...

MrTAToad

Think I've sorted it - normally I put the pointer symbol next to the function/variable it applies to.  However, IMPORT requires it next to the type...