'\" t .\" Copyright 2025 Mason Wright (mason@lakefox.net) .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" Modified Wed Oct 15 16:19 2025, Mason Wright .\" .TH grim 3 2025-10-15 "Linux man-pages 6.03" .SH NAME grim \- render HTML and CSS documents to a output source .SH LIBRARY Grim .SH SYNOPSIS .nf .B #include .PP .BI "int abs(int " j ); .BI "long labs(long " j ); .BI "long long llabs(long long " j ); .PP .B #include .PP .BI "intmax_t imaxabs(intmax_t " j ); .fi .PP .RS -3 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE .PP .BR llabs (): .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L .fi .SH DESCRIPTION The .BR grim library takes HTML and CSS as a file, string, or virtual document then computes the styles and position for the page. The output is draw to a canvas, this canvas can share memory with any output. Most commonly this will be to the compositor of the system OS. Grim also includes DOM api's from the programming language "JavaScript". This provides a common interface to interact with the document allowing dynamic updates and user events. .SH TABLE .TS tab(@) ; l l l. Header 1@Header 2@Header 3 Row 1 A@Row 1 B@Row 1 C Row 2 A@Row 2 B@Row 2 C .TE .SH RETURN VALUE Returns the absolute value of the integer argument, of the appropriate integer type for the function. .SH ATTRIBUTES For an explanation of the terms used in this section, see .BR attributes (7). .ad l .nh .TS allbox; lbx lb lb l l l. Interface Attribute Value T{ .BR abs (), .BR labs (), .BR llabs (), .BR imaxabs () T} Thread safety MT-Safe .TE .hy .ad .sp 1 .SH STANDARDS POSIX.1-2001, POSIX.1-2008, C99, SVr4, 4.3BSD. .SH NOTES Trying to take the absolute value of the most negative integer is not defined. .PP The .BR llabs () function is included since glibc 2.0. The .BR imaxabs () function is included since glibc 2.1.1. .PP For .BR llabs () to be declared, it may be necessary to define \fB_ISOC99_SOURCE\fP or \fB_ISOC9X_SOURCE\fP (depending on the version of glibc) before including any standard headers. .PP By default, GCC handles .BR abs (), .BR labs (), and (since GCC 3.0) .BR llabs () and .BR imaxabs () as built-in functions. .SH SEE ALSO .BR cabs (3), .BR ceil (3), .BR fabs (3), .BR floor (3), .BR rint (3)