BASIC

Author Topic: Basic headers file  (Read 3461 times)

MrTAToad

  • Guest
Basic headers file
« on: 2010-Jun-02 »
I've put all the standard C functions I use into one file, which you may find useful.

[attachment deleted by admin]

MrTAToad

  • Guest
Re: Basic headers file
« Reply #1 on: 2010-Jun-02 »
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...
« Last Edit: 2010-Jun-02 by MrTAToad »

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10709
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Basic headers file
« Reply #2 on: 2010-Jun-03 »
You should have made that with IMPORT now and a shiny .gbas file ;)

MrTAToad

  • Guest
Re: Basic headers file
« Reply #3 on: 2010-Jun-03 »
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...
« Last Edit: 2010-Jun-03 by MrTAToad »

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5020
  • O Rly?
    • View Profile
Re: Basic headers file
« Reply #4 on: 2010-Jun-03 »
const char* :)
I <3 DGArray's :D

PC:
AMD RYzen 7 1700 @3.9Ghz, 16GB HyperX Fury 2666Mhz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

MrTAToad

  • Guest
Re: Basic headers file
« Reply #5 on: 2010-Jun-03 »
Tried it with that too...

MrTAToad

  • Guest
Re: Basic headers file
« Reply #6 on: 2010-Jun-03 »
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...