mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 13:52:28 +00:00
Clean up some code
This commit is contained in:
parent
a51edaa0db
commit
83d41e4588
114 changed files with 172 additions and 279 deletions
|
@ -17,17 +17,12 @@
|
|||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/intrin/bits.h"
|
||||
#include "libc/intrin/kprintf.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/stdio/append.internal.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/testlib/ezbench.h"
|
||||
#include "libc/testlib/testlib.h"
|
||||
|
||||
static void PrintMemory(void *p) {
|
||||
kprintf("%#.*hhs%n", malloc_usable_size(p), p);
|
||||
}
|
||||
|
||||
TEST(vappendf, test) {
|
||||
char *b = 0;
|
||||
ASSERT_NE(-1, appendf(&b, "hello "));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue