PDA

View Full Version : syscall()


npauerk
06-19-2002, 01:33 AM
Does anyone know where this function is defined? To the best of my knowledge, none of the C source files implement it, but several of them call it.

Subject452
06-19-2002, 01:42 AM
ui_syscalls.c?

npauerk
06-19-2002, 02:04 AM
static int (QDECL *syscall)( int arg, ... ) = (int (QDECL *)( int, ...))-1;

:confused:

I've never seen this syntax before. Can someone explain it to me?

asdfasdldkc
06-19-2002, 05:07 AM
learn c++ first and you'll know ;-p


it's a function pointer.

npauerk
06-19-2002, 09:59 PM
Thank you asdfasdldkc. I know C++, but function pointers are new to me.

InfErnO
06-23-2002, 02:48 PM
Umm, function pointers are fundamentals in C. If you know C++, you should know how they work.

http://www.function-pointer.org/CCPP/FPT/em_fpt.html#chapter1

Anyway pointers are causing headache most of the time anyway.