File: regerror.c

package info (click to toggle)
moxftp 2.2-8
  • links: PTS
  • area: main
  • in suites: slink
  • size: 4,252 kB
  • ctags: 3,837
  • sloc: ansic: 43,419; makefile: 353; perl: 262; sh: 244
file content (15 lines) | stat: -rw-r--r-- 234 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "regexp.h"
#include <X11/Intrinsic.h>
#include <stdio.h>

void
regerror(s)
char *s;
{
	char *cp = NULL;

 	cp = XtMalloc(strlen(s)+sizeof("regexp(3): %s  "));
	sprintf(cp, "regexp(3): %s", s);
	Set_Status(cp);
	XtFree(cp);
}