hw8: autoformat

This commit is contained in:
2020-11-04 16:50:11 +03:00
parent a0d68131c9
commit b439368580
3 changed files with 10 additions and 14 deletions

View File

@@ -1,9 +1,7 @@
#include "buf.h"
void *
buf_grow1(void *v, size_t esize, ptrdiff_t n)
{
struct buf *p;
void* buf_grow1(void* v, size_t esize, ptrdiff_t n) {
struct buf* p;
size_t max = (size_t)-1 - sizeof(struct buf);
if (v) {
p = buf_ptr(v);