09.06.2013 Views

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>XENIX</strong> Programming Programming Commands<br />

m4 (continued)<br />

deer<br />

eval<br />

index<br />

len<br />

substr<br />

translit<br />

include<br />

Returns the value of its argument decremented by 1.<br />

Evaluates its argument as an arithmetic expression, using 32-bit arithmetic.<br />

Operators include +, -, *, /, 96, A (exponentiation), bitwise &., I, A, and -;<br />

relationals; parentheses. Octal and hex numbers may be specified as in C. The<br />

second argu ment specifies the radix for the result; the default is 10. The third<br />

argument may be used to specify the minimum number of digits in the result.<br />

Returns the position in its first argument where the second argument begins<br />

(zero-origin), or -1 if the second argument does not occur.<br />

Returns the number of characters in its argument.<br />

Returns a substring of its first argument. The second argument is a zero-origin<br />

number selecting the first character; the third argu ment indicates the length of<br />

the substring. A missing third argument is taken to be large enough to extend to<br />

the end of the first string.<br />

Transliterates the characters in its first argument from the set given by the<br />

second argu ment to the set given by the third. No abbreviations are permitted.<br />

Returns the contents of the file named in the argument.<br />

sin elude<br />

Identical to include, except that it says nothing if the file is inaccessible.<br />

syscmd<br />

sysval<br />

Executes the <strong>XENIX</strong> command given in the first argument. No value is<br />

returned.<br />

Is the return code from the last call to syscmd.<br />

maketemp<br />

Fills in a string of XXXXX in its argu ment with the current process ID.<br />

m4exit<br />

Causes immediate exit from m4. Argument 1, if given, is the exit code; the<br />

default is 0.<br />

B-87

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!