--------------------------------------------------------------------------- | Facility : libnform | Function : static char *Get_Start_Of_Data(char * buf, int blen) | | Description : Return pointer to first non-blank position in buffer. | If buffer is empty return pointer to buffer itself. | | Return Values : Pointer to first non-blank position in buf
| 224 | | If buffer is empty return pointer to buffer itself. |
| 225 | | |
| 226 | | Return Values : Pointer to first non-blank position in buffer |
| 227 | +--------------------------------------------------------------------------*/ |
| 228 | INLINE static char *Get_Start_Of_Data(char * buf, int blen) |
| 229 | { |
| 230 | char *p = buf; |
| 231 | char *end = &buf[blen]; |
| 232 | |
| 233 | assert(buf && blen>=0); |
| 234 | while( (p < end) && is_blank(*p) ) |
| 235 | p++; |
| 236 | return( (p==end) ? buf : p ); |
| 237 | } |
| 238 |
no outgoing calls
no test coverage detected
searching dependent graphs…