Library functions (j.3.12) – Echelon Neuron C User Manual

Page 257

Advertising
background image

Neuron C Programmer’s Guide

245

the directories specified in Include Directories of the NodeBuilder Device

Templates Properties dialog and Project Properties dialog.

When working from within the NodeBuilder Project Manager, or from the

command line but through the NodeBuilder Project Make Utility, the

current

working directory

is the folder that contains the main Neuron C source file.

The bracketed form shown below:

#include

<filename.ext>

searches the include subdirectory within the

standard files directory

for system

include files (such as <limits.h> and <stddef.h>). (The search for include files
specified by the bracketed form is unaffected by the directories specified in

Include Directories of the NodeBuilder's properties dialogs.)

Q: What is the support of quoted names for includable source files? (Sec. 6.10..2)

A:

The quoted names in the #include directive can be any valid filename under

the Windows operating system, with absolute, drive-relative, or relative

pathname, if any. Pathnames can be relative to the current working directory, or
relative to any of the directories on the include file search path.
When working from within the NodeBuilder Project Manager, or from the
command line but through the NodeBuilder Project Make Utility, the

current

working directory

is the folder that contains the main Neuron C source file.

Q: What is the mapping of source file character sequences in the #include

directive? (Sec. 6.10.2)

A:

The source file character sequences can be upper or lower case. Any valid

filename character can be used. Case is not significant.

Q: What is the behavior of each recognized

#pragma

directive? (Sec. 6.10.6)

A:

The #pragma directives are documented in the

Compiler Directives

chapter of

the

Neuron C Reference Guide

.

Q: What are the definitions for __DATE__ and __TIME__ when respectively, the

date and time of the translation are not available? (Sec. 6.10.8)

A:

Neuron C does not support the __DATE__ and __TIME__ macros.

Library Functions (J.3.12)

Q: What is the NULL pointer constant to which the macro NULL expands? (Sec.

7.17)

A:

The NULL pointer constant is defined to be 0 in the <stddef.h> file.

Neuron C is, generally, a “freestanding implementation.” This means that

Neuron C does not include a full Standard C library as part of the
implementation. However, some Standard C functions are available. There are

some string functions, and memory functions, such as strcpy( ) and memcmp( ).

Consult the

Functions

chapter of the

Neuron C Reference Guide

for more

information on the functions supported.

Advertising