All pastes #2068672 Raw Edit

Unnamed

public text v1 · immutable
#2068672 ·published 2011-05-24 22:09 UTC
rendered paste body
const char * cgi_getentrystr(const char *field_name)
{

  int x;

  if (cgi_request_method != CGIREQ_NONE)
    {
      /* Look for the name: */
  
      for (x = 0; x < cgi_num_entries; x++)
        {
          if (strcmp(cgi_entries[x].name, field_name) == 0)
            {
              return (cgi_entries[x].val);
            }
        }
      return(NULL);
    }
  else
    {

      /* printf("CGI-UTIL: \"%s\" ? ", field_name);
      fgets(buf, 512, stdin);
      buf[strlen(buf) - 1] = '\0'; */

      return(NULL);
    }
}