If successful then it returns the following value If not successful then it

If successful then it returns the following value if

This preview shows page 246 - 249 out of 334 pages.

If successful, then it returns the following value: 0 If not successful, then it returns nonzero and stores the error value in the errno property. Format Clib.fsetpos(f ilePointer, position ) Table 144 describes the arguments for the Restore Cursor Position method. Example For an example, see “Clib Get Cursor Position Method” on page 242 . Related Topics For more information, see the following topics: “Clib Get Cursor Position Method” on page 242 “Clib Get Relative Cursor Position Method” Clib Set Cursor Position Method The Clib Set Cursor Position method sets the position of the file cursor of an open file. It returns one of the following values: If successful, then it returns the following value: 0 Table 144. Arguments for the Restore Cursor Position Method Argument Description filePointer A file pointer that the Clib Open File method returns. position The value that the Clib Get method returns.
Image of page 246
C Language Library Reference Clib File Input and Output Methods Siebel eScript Language Reference Version 8.1, Rev. A 247 If not successful, then it returns a nonzero value. Format Clib.fseek( filePointer, offset [, mode ]) Table 145 describes the arguments for the Clib Set Cursor Position method. Related Topics For more information, see the following topics: “Clib Get Cursor Position Method” on page 242 “Clib Get Relative Cursor Position Method” on page 242 “Clib Move Cursor to Beginning of File Method” on page 243 Clib Scan and Convert File Method The Clib Scan and Convert File method reads data from a file and stores data items that exist in this file in a series of arguments. It returns one of the following values: If successful, then it returns the number of input items it converted and stored. If an input failure occurs before the conversion, then it returns the following value: EOF Format Clib.fscanf( filePointer, formatString, var1, var2, ..., var n) Table 145. Arguments for the Clib Set Cursor Position Method Argument Description filePointer A file pointer that the Clib Open File method returns. offset The number of bytes that the Clib Set Cursor Position method moves the file cursor, starting with the value that you specify in the mode argument. The cursor position in a text file might not correspond exactly with the byte offset in the file. A text file is a file that is not opened in binary mode. mode You can specify one of the following values: SEEK_CUR. Relative to the current position of the file cursor. SEEK_END. Relative to the end of the file. SEEK_SET. Relative to the beginning of the file. If you do not specify the mode argument, then this method uses SEEK_SET.
Image of page 247
Siebel eScript Language Reference Version 8.1, Rev. A C Language Library Reference Clib File Input and Output Methods 248 Table 146 describes the arguments for the Clib Scan and Convert File method.
Image of page 248
Image of page 249

You've reached the end of your free preview.

Want to read all 334 pages?

  • Summer '16
  • Oracle
  • Type system, Siebel, Siebel eScript

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors