P99

◆ P99_AARG

#define P99_AARG (   TYPE,
  NAME,
  DIM,
  VAR 
)

Declare a pointer to array function argument of basetype TYPE, with name NAME, dimension DIM and naming scheme for the length variables VAR{0}, ... VAR{DIM - 1}.

Parameter VAR may be omitted such that you will not have access to the length variables. But you most probably don't need them since you may use P99_ALEN to have these values.

DIM defaults to 1.

Warning
A pointer so declared has the const attribute and thus may not be modified.

If TYPE has qualifiers (const, volatile, restrict or _Atomic), the corresponding call to P99_ACALL must contain the same qualifiers in the 3rd argument.

See also
P99_ACALL
P99_ALEN
Remarks
argument 0 should correspond to a type that is not a VLA.
argument 2 must expand to a decimal number
Examples
test-p99-pow.c.

Definition at line 750 of file p99_for.h.