diff options
| author | Thomas Schmucker <ts@its1.de> | 2024-09-06 21:10:21 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2024-09-06 21:10:21 +0200 |
| commit | 9e8caf1e06ba7510160305da11a30d91dcfc23e5 (patch) | |
| tree | 30da0c941191d0907abe829feb1bf75f0fca4b3a /src/allocator.c | |
| parent | 4ecdad9462c4447c1370cf1dd1341b2289c28566 (diff) | |
| download | data-structures-9e8caf1e06ba7510160305da11a30d91dcfc23e5.tar.gz data-structures-9e8caf1e06ba7510160305da11a30d91dcfc23e5.tar.bz2 data-structures-9e8caf1e06ba7510160305da11a30d91dcfc23e5.zip | |
reformat source code
Diffstat (limited to 'src/allocator.c')
| -rw-r--r-- | src/allocator.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/allocator.c b/src/allocator.c index 98fa69f..d6aeea9 100644 --- a/src/allocator.c +++ b/src/allocator.c | |||
| @@ -49,7 +49,7 @@ char * | |||
| 49 | allocator_strdup(struct allocator *allocator, const char *str) | 49 | allocator_strdup(struct allocator *allocator, const char *str) |
| 50 | { | 50 | { |
| 51 | size_t n; | 51 | size_t n; |
| 52 | char * dest; | 52 | char *dest; |
| 53 | 53 | ||
| 54 | n = strlen(str) + 1; | 54 | n = strlen(str) + 1; |
| 55 | dest = allocator_malloc(allocator, n); | 55 | dest = allocator_malloc(allocator, n); |
| @@ -74,6 +74,7 @@ allocator_malloc_zero(struct allocator *allocator, size_t n) | |||
| 74 | } | 74 | } |
| 75 | 75 | ||
| 76 | int | 76 | int |
| 77 | main() | 77 | main(void) |
| 78 | { | 78 | { |
| 79 | return 0; | ||
| 79 | } | 80 | } |
