MCPcopy Create free account
hub / github.com/Kitware/CMake / Get_Start_Of_Data

Function Get_Start_Of_Data

Source/CursesDialog/form/frm_driver.c:226–235  ·  view source on GitHub ↗

--------------------------------------------------------------------------- | 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

Source from the content-addressed store, hash-verified

224| If buffer is empty return pointer to buffer itself.
225|
226| Return Values : Pointer to first non-blank position in buffer
227+--------------------------------------------------------------------------*/
228INLINE 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

Callers 7

Perform_JustificationFunction · 0.85
Undo_JustificationFunction · 0.85
IFN_Next_WordFunction · 0.85
IFN_Beginning_Of_FieldFunction · 0.85
IFN_Beginning_Of_LineFunction · 0.85
Insert_StringFunction · 0.85
FE_Delete_WordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…