File: req_init.c

package info (click to toggle)
bglibs 2.04%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,368 kB
  • sloc: ansic: 15,820; perl: 674; sh: 64; makefile: 26
file content (10 lines) | stat: -rw-r--r-- 246 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
#include "client.h"

int vclient_req_init(vclient_req* vr, const str* cmd)
{
  if (1 + 2 + cmd->len > VCLIENT_MAXLEN) return 0;
  if (!str_truncate(&vr->data, 0)) return 0;
  if (!vclient_req_arg(vr, cmd)) return 0;
  vr->args = 0;
  return 1;
}