File: regerror.c

package info (click to toggle)
moxftp 2.2-18.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 4,160 kB
  • ctags: 3,837
  • sloc: ansic: 43,420; makefile: 353; perl: 262; sh: 192
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);
}