Branch: Tag:

1995-11-13

1995-11-13 10:42:51 by David Hedbor <david@hedbor.org>

committing

Rev: src/test/create_testsuite:1.1
Rev: src/test/test_lpc.lpc:1.1
Rev: src/test/verifymanual.lpc:1.1

800:   <docgroup homogen-name='exec' homogen-type='method'>   <method name='exec'/><doc placeholder='true'>   <text> + <p><tt>exec</tt> - execute a program</p> +  + <tt><p>int exec(string ... <i>args</i>);<br/> + </p> + </tt> + <p>This function transforms the uLPC process into a process running + the program specified in args. The args will be sent as argv[] to + the new program. This function only returns if something went wrong + during exec(), and in that case it returns zero.</p> + </text> +  + <group><note/><text> + <p>The uLPC driver _dies_ when this function is called. You must use + fork() if you wish to execute a program and still run the uLPC + driver.</p> + </text></group> +  + <group><example/><text> + <tt><p>exec("ls","-l");<br/> + </p> + </tt></text></group> +  + <group><seealso/><text> + <p><ref resolved='predef::fork' to='predef::fork'>files/fork</ref> and <ref resolved='predef::/precompiled/file.pipe' to='file-&gt;pipe'>file-&gt;pipe</ref></p> + </text></group> +  + </doc> + </docgroup> + <docgroup homogen-name='exec' homogen-type='method'> + <method name='exec'/><doc placeholder='true'> + <text>   <p><tt>exec</tt> - simple way to use exece()</p>      <tt><p>int exec(string <i>file</i>, string ... <i>args</i>);<br/>
1421:   <text>   <p><tt>indices</tt> - return an array of all index possible for a value</p>    - <tt><p>mixed *indices(string|array|mapping|list <i>foo</i>);<br/> + <tt><p>mixed *indices(string|array|mapping|list|object <i>foo</i>);<br/>   </p>   </tt>   <p>Indices returns an array of all values you can use as index when   indexing foo. For strings and arrays this is simply an array of the   ascending numbers. For mappings and lists, the array may contain any - kind of value.</p> + kind of value. For objects, the result is an array of strings.</p>   </text>      <group><seealso/><text>
2657:   <p><tt>sprintf</tt> - print the result from sprintf</p>      <tt><p>string sprintf(string <i>format</i>,mixed <i>arg</i>,....);<br/> - <br/> - DESCRIPTION<br/> - The format string is a string containing a description of how to<br/> - output the data in the rest of the arguments. This string should<br/> - generally speaking have one %<i>modifyers</i><i>operator</i> (examples:<br/> - %s, %0d, %-=20s) for each of the rest arguments.<br/> -  +    </p> -  + </tt> + <p>The format string is a string containing a description of how to + output the data in the rest of the arguments. This string should + generally speaking have one %&lt;modifyers&gt;&lt;operator&gt; (examples: + %s, %0d, %-=20s) for each of the rest arguments. + </p>   <p>Modifyers:<br/>   <dl><group><text>0 Zero pad numbers (implies right justification)<br/>   ! Toggle truncation<br/>
2706:   %O any type (debug style)<br/>   %n nop<br/>   %t type of argument<br/> - %<i>modifyers</i>{format%} do a format for every index in an array.<br/> + %&lt;modifyers&gt;{format%} do a format for every index in an array.<br/>   </text></group></dl></p> - </tt></text> + </text>      <group><example/><text>   <tt><p>uLPC v1.0E-95 Running Hilfe v1.2 (Hubbe's Incremental LPC FrontEnd)<br/>
3199:   <text>   <p><tt>values</tt> - return an array of all possible values from indexing</p>    - <tt><p>mixed *values(string|list|mapping|array <i>foo</i>);<br/> + <tt><p>mixed *values(string|list|mapping|array|object <i>foo</i>);<br/>   </p>   </tt>   <p>Values return an array of all values you can get when indexing the   value foo. For strings, an array of int with the ascii values of the   characters in the string is returned. For a list, an array filled with - ones is return. For mappings and arrays, the returned array may - contain any kind of value.</p> + ones is return. For mappings, objects and arrays, the returned array + may contain any kind of value.</p>   </text>      <group><seealso/><text>