Skip to content
Extraits de code Groupes Projets

Resolve "Kara length"

6 files
+ 68
22
Comparer les modifications
  • Côte à côte
  • En ligne

Fichiers

+ 9
0
@@ -4,6 +4,11 @@
#include <unistd.h>
#include <stdint.h>
/* May be usefull (gcc, see something else for clang):
__FLOAT_WORD_ORDER__
__ORDER_LITTLE_ENDIAN__
__ORDER_BIG_ENDIAN__ */
#define not_implemented() __not_implemented(__func__,__FILE__,__LINE__)
extern void __not_implemented(const char *func, char *file, int line);
@@ -27,6 +32,10 @@ uint32_t be_uint32_t(const uint8_t bytes[], size_t n);
Restriction: n <= 8 */
uint64_t be_uint64_t(const uint8_t bytes[], size_t n);
/* Same as `be_uint64_t` but for Big-endian doubles.
Restriction: n <= 8 */
double be_double_t(const uint8_t bytes[], size_t n);
/* Trim the string `str` of the char `c` from the right and the left.
The string may not be null terminated.
Returns a pointer to the the trimmed string
Chargement en cours