Comp errors fixed -> more comp errors :(

pull/38/head
E. Almqvist 3 years ago
parent f9ebd01832
commit 40b8aa7a3d
  1. 2
      lib/conv.c
  2. 1
      lib/conv.h

@ -1,7 +1,7 @@
#include "conv.h"
void int_to_str(int i, char* buf) {
uint num = (uint)i; // convert to uint
ulong num = (ulong)i; // convert to ulong
uint len = ulong_len(num); // number of digits
&buf[len] = '\0'; // add a "end-of-string" at the end

@ -1,4 +1,5 @@
#include "types.h"
#include "util.h"
#define ASCII_OFFSET 0x30

Loading…
Cancel
Save