utility.h

Package: WA2L/edrc 1.5.57
Section: WA2L C Programmer's Manual (3)
Updated: 27 June 2024
Index Return to Main Contents

 

NAME

showbits - utility functions

 

SYNOPSIS

#include "utility.h"

char *showbits(unsigned int *value);

 

AVAILABILITY

WA2L/edrc

 

DESCRIPTION

utility.h provides utility functions.

 

showbits()

return a string representing the set/unset bits of the given unsigned integer value.

Example:

        printf(" decimal: '%d'\n binary:  '%s'\n", 1291, showbits(1291));

Output:

         decimal: '1291'
         binary:  '00000000000000000000010100001011'

 

RETURN VALUE

-

 

ENVIRONMENT

-

 

FILES

lib/$OSID/includes/utility.h

 

EXAMPLES

-

 

SEE ALSO

edrcintro(1), https://www.gnu.org/software/gnu-c-manual/gnu-c-manual.html, checkopt.h(3), osid(3), program.h(3), strings.h(3), wa2lc(3)

 

NOTES

-

 

BUGS

-

 

AUTHOR

utility.h was developed by Christian Walther. Send suggestions and bug reports to wa2l@users.sourceforge.net . 

 

COPYRIGHT

Copyright © 2024 Christian Walther

This is free software; see edrc/doc/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


 

Index

NAME
SYNOPSIS
AVAILABILITY
DESCRIPTION
showbits()
RETURN VALUE
ENVIRONMENT
FILES
EXAMPLES
SEE ALSO
NOTES
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html using the manual pages.
Time: 16:54:59 GMT, August 28, 2024