FreeBSD/usr.sbin/pmcannotate/pmcannotate.c
/*
 * Identifies a string containing objdump's assembly printout
 * for a new function.
 */
Identifies a string containing objdump's assembly printout
for a new function.
Identifies a string containing objdump ' s assembly printout for a new function .
static inline int
newfunction(const char *str)
{
	char fname[FNBUFF];
	void *ptr;
	int nbytes;
	if (isspace(str[0]))
		return (0);
	if (sscanf(str, "%p <%[^>:]>:%n", &ptr, fname, &nbytes) != 2)
		return (0);
	return (nbytes);
}
static inline int newfunction ( const char * str ) { char fname [ FNBUFF ] ; void * ptr ; int nbytes ; if ( isspace ( str [ 0 ] ) ) return ( 0 ) ; if ( sscanf ( str , " " , & ptr , fname , & nbytes ) != 2 ) return ( 0 ) ; return ( nbytes ) ; }
Identifies a string containing objdump's assembly printout
 for a new function.
Identifies a string containing objdump ' s assembly printout for a new function .