com.tapina.robe.swi.clib.stdio
Class GetC

java.lang.Object
  extended bycom.tapina.robe.runtime.Block
      extended bycom.tapina.robe.runtime.CodeBlock
          extended bycom.tapina.robe.swi.clib.Stub
              extended bycom.tapina.robe.swi.clib.stdio.GetC
All Implemented Interfaces:
Executable
Direct Known Subclasses:
FGetC

public class GetC
extends Stub

This function reads a single character from the stream pointed to by stream and returns it as an int. It is virtually identical to fgetc . The only difference is that the function might be a macro and the argument may be evaluated more than once so you can't use an expression with side effects. For example: getc(f[i++]) may cause i to be incremented twice. Returns: Character read, or EOF for an error.


Field Summary
 
Fields inherited from class com.tapina.robe.swi.clib.Stub
A1, A2, A3, A4, FP, IP, log, LR, PC, SL, SP, V1, V2, V3, V4, V5, V6
 
Constructor Summary
GetC()
           
 
Method Summary
 void executeStub(Environment environment)
           
 
Methods inherited from class com.tapina.robe.swi.clib.Stub
execute, executeSubroutine, setAddress
 
Methods inherited from class com.tapina.robe.runtime.CodeBlock
isExtendable
 
Methods inherited from class com.tapina.robe.runtime.Block
getAddress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetC

public GetC()
Method Detail

executeStub

public void executeStub(Environment environment)
Specified by:
executeStub in class Stub


Copyright © 2003-2005 . All Rights Reserved.