Next: , Previous: , Up: C   [Index]


C library functions

C Library Functions

You can assign the result of a C library function to a Ctalk object, provided that the return type of the function has a corresponding Ctalk class.

All C functions must have prototypes. The library functions in this section already have their prototypes defined in the C library headers. If a function in a program does not have a prototype, Ctalk prints an error and exits.

Generally, if Ctalk has a method that is analogous to a C library function, you can use the method with Ctalk objects, although in many cases you can mix objects and C variables. Of course, you can still use any C library function with C data types.

There are some incompatibilities with more specialized libraries. For example, you should take care when using the X Window System Xt widgets in Ctalk programs, because the widget classes use the some of the same class names as the Ctalk library.

The following sections describe the C library functions that Ctalk can use directly.


Next: , Previous: , Up: C   [Index]