- Timestamp:
- Aug 9, 2017, 12:47:22 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20170809/src/libfits/header/F_H_field.c
r39926 r40113 104 104 ptr = buf + 9; // start of following keyword 105 105 if (strncmp (field, ptr, Nfield)) continue; 106 if (ptr[Nfield + 1] != '=') continue; // the strncmp above will match a longer string which matches the subset of field (e.g., FOO will match FOOBAR and FOO). test for the following '=' sign 106 107 Nfound ++; 107 108 } … … 116 117 ptr = buf + 9; // start of following keyword 117 118 if (strncmp (field, ptr, Nfield)) continue; 119 if (ptr[Nfield + 1] != '=') continue; // the strncmp above will match a longer string which matches the subset of field (e.g., FOO will match FOOBAR and FOO). test for the following '=' sign 118 120 Nfound ++; 119 121 if (Nwant == Nfound) return (ptr);
Note:
See TracChangeset
for help on using the changeset viewer.
