1 |
#include <stdio.h> |
#include <stdio.h> |
2 |
#include <stdlib.h> |
#include <stdlib.h> |
3 |
#include <string.h> |
#include <string.h> |
4 |
|
#include <strings.h> |
5 |
#include <ctype.h> |
#include <ctype.h> |
6 |
#include <sys/types.h> |
#include <sys/types.h> /* IEEE Std 1003.1-2001 non-conformance. */ |
7 |
#include <regex.h> |
#include <regex.h> |
8 |
#include <setjmp.h> |
#include <setjmp.h> |
9 |
|
|
448 |
char result[RESULT_BUF]; |
char result[RESULT_BUF]; |
449 |
|
|
450 |
r = RESPONSE_OK; |
r = RESPONSE_OK; |
451 |
reg = "[[:xdigit:]]{8,8} ((OK|NO|BAD)[[:print:]]*)\r\n"; |
reg = "[[:xdigit:]]{4,4} ((OK|NO|BAD)[[:print:]]*)\r\n"; |
452 |
result[0] = '\0'; |
result[0] = '\0'; |
453 |
|
|
454 |
regcomp(&creg, reg, REG_EXTENDED | REG_ICASE); |
regcomp(&creg, reg, REG_EXTENDED | REG_ICASE); |