.\" -*- coding: UTF-8 -*- .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" .\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" .\" References consulted: .\" Linux libc source code .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Mon Mar 29 22:31:13 1993, David Metcalfe .\" Modified Sun Jun 6 23:27:50 1993, David Metcalfe .\" Modified Sat Jul 24 21:45:37 1993, Rik Faith (faith@cs.unc.edu) .\" Modified Sat Dec 16 15:02:59 2000, Joseph S. Myers .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH ABS 3 "15. März 2016" GNU Linux\-Programmierhandbuch .SH BEZEICHNUNG abs, labs, llabs, imaxabs \- ermittelt den Absolutwert einer ganzen Zahl .SH ÜBERSICHT .nf \fB#include \fP .PP \fBint abs(int \fP\fIj\fP\fB);\fP \fBlong int labs(long int \fP\fIj\fP\fB);\fP \fBlong long int llabs(long long int \fP\fIj\fP\fB);\fP \fB#include \fP .PP \fBintmax_t imaxabs(intmax_t \fP\fIj\fP\fB);\fP .fi .PP .in -4n Mit Glibc erforderliche Makros (siehe \fBfeature_test_macros\fP(7)): .in .PP .ad l \fBllabs\fP(): .RS 4 _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L .RE .ad .SH BESCHREIBUNG Die Funktion \fBabs\fP() berechnet den absoluten Wert des Ganzzahlarguments \fIj\fP. Die Funktionen \fBlabs\fP(), \fBllabs\fP() und \fBimaxabs\fP() berechnen den absoluten Wert des Arguments \fIj\fP; der Datentyp des Absolutwerts ist gleich dem des Arguments. .SH RÜCKGABEWERT Gibt den Absolutwert des Ganzzahlarguments zurück. Der Datentyp des Rückgabewerts entspricht dem des Arguments. .SH ATTRIBUTE Siehe \fBattributes\fP(7) für eine Erläuterung der in diesem Abschnitt verwandten Ausdrücke. .ad l .TS allbox; lb lb lb l l l. Schnittstelle Attribut Wert T{ \fBabs\fP(), \fBlabs\fP(), \fBllabs\fP(), \fBimaxabs\fP() T} Multithread\-Fähigkeit MT\-Safe .TE .ad .SH "KONFORM ZU" .\" POSIX.1 (1996 edition) requires only the .\" .BR abs () .\" function. POSIX.1\-2001, POSIX.1\-2008, C99, SVr4, 4.3BSD. C89 enthält nur die Funktionen \fBabs\fP() und \fBlabs\fP(); in C99 kamen die Funktionen \fBllabs\fP() und \fBimaxabs\fP() dazu. .SH ANMERKUNGEN Das Ergebnis des Funktionsaufrufs mit der größten negativen Ganzzahl ist nicht definiert. .PP Die Funktion \fBllabs\fP() ist seit Version 2.0 in der glibc enthalten. Seit Version 2.1.1 gibt es in der glibc die Funktion \fBimaxabs\fP(). .PP Damit \fBllabs\fP deklariert ist, ist es vielleicht erforderlich, vor dem Einbinden der Standard\-Header abhängig von der glibc\-Version \fB_ISOC99_SOURCE\fP oder \fB_ISOC9X_SOURCE\fP zu definieren. .PP In der Voreinstellung stellt GCC \fBabs\fP(), \fBlabs\fP() und (seit GCC 3.0) \fBllabs\fP() und \fBimaxabs\fP() als eigene (»built\-in«) Versionen zur Verfügung. .SH "SIEHE AUCH" \fBcabs\fP(3), \fBceil\fP(3), \fBfabs\fP(3), \fBfloor\fP(3), \fBrint\fP(3) .SH KOLOPHON Diese Seite ist Teil der Veröffentlichung 5.04 des Projekts Linux\-\fIman\-pages\fP. Eine Beschreibung des Projekts, Informationen, wie Fehler gemeldet werden können sowie die aktuelle Version dieser Seite finden sich unter \%https://www.kernel.org/doc/man\-pages/. .SH ÜBERSETZUNG Die deutsche Übersetzung dieser Handbuchseite wurde von Markus Schmitt , Martin Eberhard Schauer und Mario Blättermann erstellt. Diese Übersetzung ist Freie Dokumentation; lesen Sie die .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE oder neuer bezüglich der Copyright-Bedingungen. Es wird KEINE HAFTUNG übernommen. Wenn Sie Fehler in der Übersetzung dieser Handbuchseite finden, schicken Sie bitte eine E-Mail an die .MT debian-l10n-german@\:lists.\:debian.\:org Mailingliste der Übersetzer .ME .