delorie.com/archives/browse.cgi | search |
From: | "Luke Bishop" <lbishop AT calvin DOT stemnet DOT nf DOT ca> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: startup functions on gnu c/c++? |
Date: | 13 Apr 1998 01:21:12 GMT |
Organization: | The Zone |
Lines: | 5 |
Message-ID: | <01bd65b2$5bd1c4a0$3348a5c6@technoid> |
References: | <199804120455 DOT XAA18360 AT waller DOT net> |
NNTP-Posting-Host: | n072h051.thezone.net |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
> How to I define functions to be called on program startup before main is > called? Simple. Just put an __attribute__((constructor)) in your code. It should be in the gcc info file under c language extensions how to use it.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |