Chapter Contents |
Previous |
Next |
Source Code Conventions |
65,535
if the
extname
option is specified.
extname
option is not specified.
extname
option is specified.
char
is identical to an
unsigned character.
double
can represent all integral values exactly, so no rounding is necessary when
an integer is converted to a
double
. When a
long
integer value is converted to
float
, the value is rounded.
sizeof
operator,
size_t
) is
unsigned int
.
unsigned long
to the destination type. Nonaddress bits in the pointer
will be preserved.
unsigned long
. The pointer
contains the logical address corresponding to the integral value. Nonaddress
bits are preserved.
ptrdiff_t
is
signed long
.
register
keyword is ignored when the
optimize
option is used
because registers are allocated to variables by the compiler when the
optimize
option is specified. The number of registers allocated can
be controlled by the
greg
and
freg
options. See Optimizations for more
information.
union
object is accessed
using a member of a different type, the result is undefined.
bytealign
option is used or the
__noalignmem
keyword is
used. Padding is introduced as necessary to maintain correct alignment. For
bitfields, see Noninteger bitfields.
By default, bitfields are aligned on word boundaries.
int
bitfields are treated
as
unsigned int
bitfields.
int
is left to right.
bitfield
option specifies a storage allocation unit
size of less than 4 bytes.
ints
.
volatile
-qualified type is considered an access to that object.
case
values in a
switch
statement.
#pragma
directive is covered earlier in this
chapter.
__DATE__
and
__TIME__
macros when the date and time are not available.
NULL
expands is 0.
assert
function see Chapter 6, "Function Descriptions" in
SAS/C Library Reference, Volume 1.
The diagnostic printed by the
assert
diagnostic control
function is
Assertion failed: expr Interrupted while: Executing line <number > of <source file >
where number is the current value of
__LINE__
and source file is the current value of
__FILE__
.
isalnum
,
isalpha
,
iscntrl
,
islower
,
isprint
, and
isupper
functions are described
in Chapter 6, "Function Descriptions," in
SAS/C Library Reference, Volume 1 .
errno
to the macro
ERANGE
.
fmod
function has a second argument of 0.
signal
function
signal
function.
Note:
See Chapter 3,
"I/O Functions" in
SAS/C Library Reference, Volume 1 for additional information concerning the
pad
amparm.
setbuf
and
setvbuf
in Chapter 6, "Function
Descriptions" in
SAS/C Library Reference, Volume 1.
remove
function on an open
file is unpredictable.
rename
will fail if a file with the
new name exists prior to a call to the
rename
function.
fprintf
function is the pointer value in
hexadecimal.
fscanf
function is a hexadecimal string, optionally preceded by 0x or 0p.
fscanf
function, the hyphen
(-) character has no special meaning. It is interpreted the same way as any
other character in the scan list.
fgetpos
and
ftell
in Chapter 6, "Function Descriptions" in
SAS/C Library Reference, Volume 1
for information on failure of these functions.
perror
function are listed in
SAS/C Software Diagnostic Messages.
calloc
,
malloc
, and
realloc
return a
NULL
pointer if the size requested is 0.
abort
function is called. The effect on temporary files is unpredictable and system
dependent.
exit
is other than 0,
EXIT_SUCCESS
, or
EXIT_FAILURE
, the status
returned by
exit
is passed unchanged to CMS or reduced modulo
4096 in OS/390. Under the USS shell, a negative exit status or one greater
than 255 is set by the USS kernel to 255.
getenv
function in Chapter 6, "Function Descriptions," in
SAS/C Library Reference, Volume 1 for information
on the set of environment names and the method for altering the environment
list.
system
function in Chapter 6, "Function Descriptions," in
SAS/C Library Reference, Volume 1 for information
on the contents and mode of execution of the string involved.
strerror
function are the same as the
perror
messages.
tzset
in Chapter 6, "Function Descriptions," in
SAS/C Library Reference, Volume 1. If TZ is not set, the
offset from Greenwich time is determined by the operating system, and no Daylight
Savings Time information is available.
clock
function under OS/390
is set at the first call to
clock
, under CMS, at virtual machine
log on.
ctype
functions
for the implementation-defined aspects of character-testing and case-mapping
functions.
Note that conventions for user-written locales are defined by the user.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.