Changeset 7d7bc09 in mainline for uspace/lib/c/include


Ignore:
Timestamp:
2018-06-20T18:58:11Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
777832e
Parents:
3bd1d7d4
Message:

abs, labs, llabs.

Location:
uspace/lib/c/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/macros.h

    r3bd1d7d4 r7d7bc09  
    3838#define min(a, b)  ((a) < (b) ? (a) : (b))
    3939#define max(a, b)  ((a) > (b) ? (a) : (b))
    40 #define abs(a)     ((a) >= 0 ? (a) : -(a))
     40#define mabs(a)    ((a) >= 0 ? (a) : -(a))
    4141
    4242#define ARRAY_SIZE(array)   (sizeof(array) / sizeof(array[0]))
  • uspace/lib/c/include/stdlib.h

    r3bd1d7d4 r7d7bc09  
    8787extern int system(const char *);
    8888
     89extern int abs(int);
     90extern long labs(long);
     91extern long long llabs(long long);
     92
    8993extern int atoi(const char *);
    9094extern long atol(const char *);
Note: See TracChangeset for help on using the changeset viewer.