test_common.c (de572d98) | test_common.c (fc2512cf) |
---|---|
1/* 2 * This file and its contents are supplied under the terms of the 3 * Common Development and Distribution License ("CDDL"), version 1.0. 4 * You may only use this file in accordance with the terms of version 5 * 1.0 of the CDDL. 6 * 7 * A full copy of the text of the CDDL should have accompanied this 8 * source. A copy of the CDDL is also available via the Internet at --- 239 unchanged lines hidden (view full) --- 248{ 249 char *p = *ptr; 250 while (isspace(*p)) { 251 p++; 252 } 253 *ptr = p; 254 p += strlen(p); 255 while ((--p >= *ptr) && (isspace(*p))) { | 1/* 2 * This file and its contents are supplied under the terms of the 3 * Common Development and Distribution License ("CDDL"), version 1.0. 4 * You may only use this file in accordance with the terms of version 5 * 1.0 of the CDDL. 6 * 7 * A full copy of the text of the CDDL should have accompanied this 8 * source. A copy of the CDDL is also available via the Internet at --- 239 unchanged lines hidden (view full) --- 248{ 249 char *p = *ptr; 250 while (isspace(*p)) { 251 p++; 252 } 253 *ptr = p; 254 p += strlen(p); 255 while ((--p >= *ptr) && (isspace(*p))) { |
256 *p = 0; | 256 *p = '\0'; |
257 } 258} 259 260#define MAXCB 20 261#define MAXFIELD 20 262 263int 264test_load_config(test_t t, const char *fname, ...) --- 142 unchanged lines hidden --- | 257 } 258} 259 260#define MAXCB 20 261#define MAXFIELD 20 262 263int 264test_load_config(test_t t, const char *fname, ...) --- 142 unchanged lines hidden --- |