Skip to content

Instantly share code, notes, and snippets.

@vaiorabbit
Created February 23, 2012 15:19
Show Gist options
  • Save vaiorabbit/1893267 to your computer and use it in GitHub Desktop.
Save vaiorabbit/1893267 to your computer and use it in GitHub Desktop.
Excerpt from lv.c
/* lv.c */
#define GREP_COMMAND "lgrep"
/* ... */
private void LvInit( byte **argv )
{
/* ... */
else
ptr = argv[ 0 ];
if( !strncmp( ptr, GREP_COMMAND, strlen( GREP_COMMAND ) )
|| !strncmp( ptr, GREP_COMMAND_DOS, strlen( GREP_COMMAND_DOS ) ) )
grep_mode = TRUE;
else
grep_mode = FALSE;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment