Overview of the Clib Object The Clib C library object includes functions that

Overview of the clib object the clib c library object

This preview shows page 217 - 220 out of 334 pages.

Overview of the Clib Object The Clib (C library) object includes functions that are part of the standard library of the C programming language. It includes methods that can reference files, directories, strings, the environment, memory, and characters. It also includes time functions, error functions, sorting functions, and math functions. Siebel CRM supports the Clib library in Windows servers and Unix servers. It does not support the Clib library for Browser script. NOTE: The Clib object is a wrapper you can use to call a function in the standard C library as implemented for a specific operating system. The methods that this chapter describes might behave differently on different operating systems.
Image of page 217
Siebel eScript Language Reference Version 8.1, Rev. A C Language Library Reference Overview of the Clib Object 218 Using Siebel eScript Methods Instead of Clib Methods Table 123 lists each Clib method that has an equivalent method in Siebel eScript. These methods are redundant because their functionality already exists in Siebel eScript. Where possible, you must use the Siebel eScript method instead of the equivalent Clib method. In some situations the Clib method is preferred and is more consistent in a section of script. For example, when working with a string routine that expects a null string. Table 123. Siebel eScript You Can Use Instead of Clib Methods Siebel eScript Method Clib Method Description Get Absolute Value Method abs Calculates absolute value. Get Arc Cosine Method acos Calculates the arc cosine. Get Arcsine Method asin Calculates the arc sine. Get Arctangent Method atan Calculates the arc tangent. Get Arctangent 2 Method atan2 Calculates the arc tangent of a fraction. Convert String to Floating- Point Number Method atof Converts a string to a floating-point number. Convert String to Integer Method atoi Converts a string to an integer. Automatic conversion atol Converts a string to a long integer. Get Ceiling Method ceil Rounds a number up to the nearest integer. Get Cosine Method cos Calculates the cosine. Get Exponential Method exp Calculates the exponential function. Math absolute fabs Calculates the absolute value of a floating-point number. Get Floor Method floor Rounds a number down to the nearest integer. % operator, modulo fmod Calculates the remainder. Math absolute labs Returns the absolute value of a long. Get Logarithm Method log Calculates the natural logarithm. Get Maximum Method max Returns the largest of one or more values. Get Minimum Method min Returns the smallest of one or more values. Raise Power Method pow Calculates x to the power of y. Get Sine Method sin Calculates the sine. Get Square Root Method sqrt Calculates the square root. + operator strcat Appends one string to another. == operator strcmp Compares two strings.
Image of page 218
C Language Library Reference Clib File and Directory Methods Siebel eScript Language Reference Version 8.1, Rev. A 219 The phrase automatic conversion in the Siebel eScript Method column means that Siebel eScript implicitly performs a conversion. For example, when comparing Siebel eScript to the atol Clib
Image of page 219
Image of page 220

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