INTRO(3) Linux Programmer's Manual INTRO(3)NAME
intro - Introduction to library functions
DESCRIPTION
This chapter describes all library functions excluding the library functions described in chapter 2, which implement system calls. There
are various function groups which can be identified by a letter which is appended to the chapter number:
(3C) These functions, the functions from chapter 2 and from chapter 3S are contained in the C standard library libc, which will be used
by cc(1) by default.
(3S) These functions are parts of the stdio(3) library. They are contained in the standard C library libc.
(3M) These functions are contained in the arithmetic library libm. They are used by the f77(1) FORTRAN compiler by default, but not by
the cc(1) C compiler, which needs the option -lm.
(3F) These functions are part of the FORTRAN library libF77. There are no special compiler flags needed to use these functions.
(3X) Various special libraries. The manual pages documenting their functions specify the library names.
AUTHORS
Look at the header of the manual page for the author(s) and copyright conditions. Note that these can be different from page to page!
Linux 1995-12-13 INTRO(3)
Check Out this Related Man Page
INTRO(3) Library Functions Manual INTRO(3)NAME
intro - introduction to library functions
SYNOPSIS
#include <stdio.h>
#include <math.h>
DESCRIPTION
This section describes functions that may be found in various libraries, other than those functions that directly invoke UNIX system primi-
tives, which are described in section 2. Functions are divided into various libraries distinguished by the section number at the top of
the page:
(3) These functions, together with those of section 2 and those marked (3S), constitute library libc, which is automatically loaded by
the C compiler cc(1) and the Fortran compiler f77(1). The link editor ld(1) searches this library under the `-lc' option. Declara-
tions for some of these functions may be obtained from include files indicated on the appropriate pages.
(3M) These functions constitute the math library, libm. They are automatically loaded as needed by the Fortran compiler f77(1). The link
editor searches this library under the `-lm' option. Declarations for these functions may be obtained from the include file
<math.h>.
(3S) These functions constitute the `standard I/O package', see stdio(3). These functions are in the library libc already mentioned.
Declarations for these functions may be obtained from the include file <stdio.h>.
(3X) Various specialized libraries have not been given distinctive captions. The files in which these libraries are found are named on
the appropriate pages.
FILES
/lib/libc.a
/lib/libm.a, /usr/lib/libm.a (one or the other)
SEE ALSO stdio(3), nm(1), ld(1), cc(1), f77(1), intro(2)DIAGNOSTICS
Functions in the math library (3M) may return conventional values when the function is undefined for the given arguments or when the value
is not representable. In these cases the external variable errno (see intro(2)) is set to the value EDOM or ERANGE. The values of EDOM
and ERANGE are defined in the include file <math.h>.
ASSEMBLER
In assembly language these functions may be accessed by simulating the C calling sequence. For example, ecvt(3) might be called this way:
setd
mov $sign,-(sp)
mov $decpt,-(sp)
mov ndigit,-(sp)
movf value,-(sp)
jsr pc,_ecvt
add $14.,sp
INTRO(3)
i have been trying to understand this chapter titled "Searching for Files and Text" for a few weeks now.
unfortunately, this chapter is one of those things, that no matter how hard you try and how long you try for, you are incapable of understanding (at least in my case)
this entire chapter,... (2 Replies)
Does anyone here know of any good windows c++ compiler for linux? so that I can compile c++ programs in Linux (this is very possible!). Doesnt mather if it is a real windows compiler that works in wine or if its a compiler written for linux but compiles windows binaries (4 Replies)
Hello,
I have a FORTRAN code that I want to compile using F90 compiler. However,
when I enter the command:
f90 ./code.f -o ./code.out
It would give me prompt saying that absoft license has failed, or something.
I remember, however, that I could enter some keyword that ends with 'soft'
in... (1 Reply)
Hi
I need to perform certain tests on information contained in a file, a lot of what is contained in the file is duplicate data, so what I want to do as it is a failrly substantial file size is to start and finish reading from a specifed line in the file.
Can someone tell me how to indicate... (3 Replies)
hi,
iam new of scripting.give him the need full information of specail character
functions like(!,~,`,@,#,$,%,^,&,**,*,(),<,>,.,?/) like
if
if
some help me
ok
byyyyy: (1 Reply)
hello people...i have beeen given this projectile problem to be solved numerically in FORTRAN..i have coded it using runge0kutta 4th order ......now the thing is that i have not been given the end points of time,,;ie. the range.. and i am asked to
a)the maximum height attained by the... (2 Replies)
Hi,
I've been having trouble figuring out what the following read statement is doing.
DO I = 1, natom
k = 3 * (i - 1) + 1
READ(8,*) AtNum(I), (X_2(J),J=k,k+2)
END DO
The part I don't understand is:
(X_2(J),J=k,k+2)
the file it is reading is simply a set of... (8 Replies)
Hi
I am reading a book about Fortran 90 and I write the following code, to test my understanding of the first chapter. I have a problem with the last section of the code with deals with an IF, ELSEIF, and GOTO statements. Here is my Code
PROGRAM sim
! This code is used to solve two... (3 Replies)
Hi guys,
New member here, also new student!
I'm just starting the Shell Programming, currently in chapter four in the Book in Unix, Linux, and OS X by Stephen G. Kochan & Patrick Wood (4th edition).
I'm needing a little help with other possible ways to shorten this shell command:
//
... (1 Reply)
Tool used : VIM editor that comes with RHEL 7.4
I have a file like below. It has around 300 lines like below. All the lines starting with # are comments.
For readability, I removed all lines starting with # from vi (vim editor) using the command :g/^#/d . It seemed to have worked.
But, which... (8 Replies)