| 4818 | ////////////////////////////////////////////// |
| 4819 | |
| 4820 | TSReturnCode |
| 4821 | compare_field_names(RegressionTest * /* test ATS_UNUSED */, TSMBuffer bufp1, TSMLoc mime_loc1, TSMLoc field_loc1, TSMBuffer bufp2, |
| 4822 | TSMLoc mime_loc2, TSMLoc field_loc2) |
| 4823 | { |
| 4824 | const char *name1; |
| 4825 | const char *name2; |
| 4826 | int length1; |
| 4827 | int length2; |
| 4828 | |
| 4829 | name1 = TSMimeHdrFieldNameGet(bufp1, mime_loc1, field_loc1, &length1); |
| 4830 | name2 = TSMimeHdrFieldNameGet(bufp2, mime_loc2, field_loc2, &length2); |
| 4831 | |
| 4832 | if ((length1 == length2) && (strncmp(name1, name2, length1) == 0)) { |
| 4833 | return TS_SUCCESS; |
| 4834 | } else { |
| 4835 | return TS_ERROR; |
| 4836 | } |
| 4837 | } |
| 4838 | |
| 4839 | REGRESSION_TEST(SDK_API_TSMimeHdrField)(RegressionTest *test, int /* atype ATS_UNUSED */, int *pstatus) |
| 4840 | { |
no test coverage detected