![]() |
|
|
|
#1 |
|
Posts: n/a
|
I would like to overload a C function. Is there any easy way to do this?
|
|
|
|
#2 |
|
Posts: n/a
|
JaSeong Ju wrote:
> I would like to overload a C function. > Is there any easy way to do this? Just compile with a C++ compiler. |
|
|
|
#3 |
|
Posts: n/a
|
On Mon, 31 May 2004 09:48:23 +0900,
JaSeong Ju <> wrote: > > > I would like to overload a C function. Is there any easy way to do this? No. Martien -- | Martien Verbruggen | Begin at the beginning and go on till you | come to the end; then stop. | |
|
|
|
#4 |
|
Posts: n/a
|
JaSeong Ju <> writes:
> I would like to overload a C function. Is there any easy way to do this? No. C does not support function overloading. -- "When I have to rely on inadequacy, I prefer it to be my own." --Richard Heathfield |
|
|
|
#5 |
|
Posts: n/a
|
"Ben Pfaff" <> wrote in message
news:... > JaSeong Ju <> writes: > > > I would like to overload a C function. Is there any easy way to do this? > > No. C does not support function overloading. > -- > "When I have to rely on inadequacy, I prefer it to be my own." You could, however, write a wrapper function that calls the normal C function, but adds new functionality. Many people do this in calling memory functions, for instance. -- Mabden |
|
|
|
#6 |
|
Posts: n/a
|
"Mabden" <> writes:
> "Ben Pfaff" <> wrote in message > news:... >> JaSeong Ju <> writes: >> >> > I would like to overload a C function. Is there any easy way to do > this? >> >> No. C does not support function overloading. > > You could, however, write a wrapper function that calls the normal C > function, but adds new functionality. Many people do this in calling memory > functions, for instance. Do you know what function overloading is? It is not changing the behavior of some particular function, i.e. as a wrapper would, which seems to be your implication. -- "I should killfile you where you stand, worthless human." --Kaz |
|
|
|
#7 |
|
Posts: n/a
|
"JaSeong Ju" <> a écrit dans le message de news:c9dtcc$21r$... > I would like to overload a C function. Is there any easy way to do this? lcc-win32 is a compiler that supports function overloading. http://www.cs.virginia.edu/~lcc-win32 It is not a C++ compiler |
|
|
|
#8 |
|
Posts: n/a
|
"jacob navia" <> writes:
> "JaSeong Ju" <> a écrit dans le message de > news:c9dtcc$21r$... >> I would like to overload a C function. Is there any easy way to do this? > > lcc-win32 is a compiler that supports function overloading. > > It is not a C++ compiler If it supports function overloading then it isn't a C compiler either. -- "IMO, Perl is an excellent language to break your teeth on" --Micah Cowan |
|
|
|
#9 |
|
Posts: n/a
|
"Ben Pfaff" <> wrote in message
news:... > "Mabden" <> writes: > > > "Ben Pfaff" <> wrote in message > > news:... > >> JaSeong Ju <> writes: > >> > >> > I would like to overload a C function. Is there any easy way to do > > this? > >> > >> No. C does not support function overloading. > > > > You could, however, write a wrapper function that calls the normal C > > function, but adds new functionality. Many people do this in calling memory > > functions, for instance. > > Do you know what function overloading is? What a nasty question. Of course I do. Do YOU know what a C forum is for? Idiot. -- Mabden |
|
|
|
#10 |
|
Posts: n/a
|
"JaSeong Ju" <> wrote in message
news:c9dtcc$21r$... > I would like to overload a C function. Is there any easy way to do this? Standard C does not allow true function overloading, such as in C++. However, you may be able to simulate the effect with macros; examine <tgmath.h> for ideas how. Note that the method used by <tgmath.h> is necessarily implementation-dependent, so don't expect your code to be portable. S -- Stephen Sprunk "Stupid people surround themselves with smart CCIE #3723 people. Smart people surround themselves with K5SSS smart people who disagree with them." --Aaron Sorkin |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| equivalent function for itoa in Linux gcc compiler | suse | Software | 0 | 03-06-2009 04:30 AM |
| How to assign a returns value of a javascript function to a hiddenfield in a webpart | Chander | Software | 0 | 12-20-2007 08:14 AM |
| How to call C# function in javascript | visj4u | Software | 2 | 04-23-2007 02:24 PM |
| MS Access not recognising Date() function | tessythampan | Software | 0 | 08-28-2006 10:51 AM |
| I lost the "Help and Support" function from my start menu | Keith | A+ Certification | 1 | 03-14-2005 02:05 PM |