1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00

stdio-common: Use array_length and array_end macros

This commit is contained in:
Florian Weimer
2017-11-02 12:14:51 +01:00
parent c94a5688fb
commit d10b132bf5
15 changed files with 65 additions and 42 deletions

View File

@ -1,3 +1,4 @@
#include <array_length.h>
#include <stdio.h>
#include <string.h>
@ -19,7 +20,7 @@ do_test (void)
char buf[100];
int ret = 0;
for (size_t i = 0; i < sizeof (tests) / sizeof (tests[0]); ++i)
for (size_t i = 0; i < array_length (tests); ++i)
{
snprintf (buf, sizeof (buf), "%.0LA", tests[i].val);