Format A Clibfwrite sourceVar varDescription filePointer Format B Clibfwrite

Format a clibfwrite sourcevar vardescription

This preview shows page 253 - 256 out of 334 pages.

Format A Clib.fwrite( sourceVar, varDescription, filePointer ) Format B Clib.fwrite( sourceVar, bytelength, filePointer ) Table 150. Arguments for the Write String to File Method Argument Description string A string literal or a variable that contains a string. filePointer A file pointer that the Clib Open File method returns.
Image of page 253
Siebel eScript Language Reference Version 8.1, Rev. A C Language Library Reference Clib String Methods 254 Arguments Table 151 describes the arguments for the Clib Write to File method. Usage for the varDescription Argument Table 152 describes values you must set for the sourceVar argument and the varDescription argument. For example, if you use the sourceVar argument to identify a buffer, then you must set the varDescription argument to the length of that buffer, in bytes. Example The following example writes the following data into the fp file: The 16-bit i integer The 32-bit f float The 10-byte buf buffer: if ( !Clib.fwrite(i, SWORD16, fp) || !Clib.fwrite(f, FLOAT32, fp) || 10 != fwrite(buf, 10, fp)) { TheApplication().RaiseErrorText("Error writing to file.\n"); } Clib String Methods This topic describes Clib string methods. It includes the following topics: Table 151. Arguments for the Clib Write to File Method Argument Description bytelength Number of bytes that this method writes. sourceVar The source from which this method writes data. varDescription A value that depends on the type of object that the sourceVar argument identifies. filePointer The file to which this method writes data. Table 152. Relative Values of the varDescription and sourceVar Arguments Value of the sourceVar Argument Value of the varDescription Argument Buffer Length of the buffer, in bytes. Object Value of the object descriptor. A single datum One of the values listed in “Format of the Data That the Clib Read From File Method Reads” on page 245 .
Image of page 254
C Language Library Reference Clib String Methods Siebel eScript Language Reference Version 8.1, Rev. A 255 “Clib Append String Method” on page 255 “Clib Compare Strings Method” on page 256 “Clib Convert String to Lowercase Method” on page 257 “Clib Copy String Method” on page 257 “Clib Get Formatted String Method” on page 258 “Clib Get Last Substring Method” on page 259 “Clib Get Substring Method” on page 260 “Clib Search String for Character Method” on page 261 “Clib Search String for Character Set Method” on page 262 “Clib Search String for Not Character Set Method” on page 263 “Clib Write Formatted String Method” on page 264 Clib Append String Method The Clib Append String method copies characters from one string to the end of another string. It appends up to the value that you specify in the maxLen argument of the string that you specify in the sourceString argument. It does not copy any character that occurs after a null byte. It returns the appended string that the destString argument contains.
Image of page 255
Image of page 256

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

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes