Hi all,
I compile my c program and get following result
hrnpfc01.c:1387: stray '\' in program
hrnpfc01.c:1387: parse error before `,'
hrnpfc01.c:1388: stray '\' in program
hrnpfc01.c:1388: parse error before `,'
hrnpfc01.c:1396: stray '\' in program
hrnpfc01.c:1396: parse error before... (4 Replies)
ive implemented getopt for the command line but have this problem,
#!/bin/sh
text=""
set -- getopt "t" etc .... #sets arguments
while :
do
case "$1" in #gets arguments
-t: shift; text="$1" ;;
shift
done
shift
if
then
echo "no text"
else
echo... (4 Replies)
Dear All
I have a program writen in C and test in Unix. Now, I am try to run this program in windows 2000. I am receiving an error ]_getopt is not define. I will appreciate if any one can help explain to me why this problem is hapening and to slove this problem.
Thank you (9 Replies)
hello can anyone help? :confused:
i make a C code in FreeBSD 5.4 and it succeed to run
the program requires connection to mysql server
when i try to compile it under solaris i get this error message
ld: fatal: file ./lib/libmysqlclient.so: wrong ELF machine type: EM_386
why? and how to... (3 Replies)
Help please! :confused:
I have the following error with the following file and the emails are not arriving to the email, any idea please?
ERROR: ./launch_full_backup.sh: Syntax error at line 28 : `else' is not expected.
FECHA=`date +%d%m%y%H%M`... (2 Replies)
Hi All
I am quite new to Unix. Following is a shell script that i have written and getting the subject mentioned error.
#!/bin/ksh
#-------------------------------------------------------------------------
# File: ang_stdnld.ksh
#
# Desc: UNIX shell script to extract Store information.... (3 Replies)
I have just installed OpenBSD on a 333MHz PPC iMac G3. It has a 6GB HDD that has been partitioned as 1GB MacOS 8.5.1, 3GB MacOS X 10.3.9, 2GB OpenBSD 4.8. I now need to install a bootloader so that my computer can recognize the OpenBSD partition at startup. I have been trying to install... (0 Replies)
I'm trying this script and I keep getting a 'fi' not expected error:
#!/bin/sh
#TD=0
CT=0
cat P7748 |while read LINE
do
# Check to see if the LINE is non-empty, and has a <td> tag in it.
if
# Increase the TD counter by 1
CT=`echo "$CT+1" |bc`
... (2 Replies)
#include<stdio.h>
int main{
char *fl;
fl=(char*)malloc(150);
strcat(fl,"/tmp/OV/");
printf("\nInside fl--->%s\n",fl);
return 0;
}
I wrote a simple program as above. I got the error
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Please help me out ! I am... (4 Replies)
Hi All,
I have written a shell script which works all right on bash shell, but when it comes to execute it using ksh on AIX it gives the following error::(
bash$ /bin/ksh getShortInfo.sh
getShortInfo.sh: syntax error at line 26 : `(' unexpected
Could you please indicate what is... (4 Replies)
Discussion started by: Elvis
4 Replies
LEARN ABOUT FREEBSD
xo_warn_hc
LIBXO(3) BSD Library Functions Manual LIBXO(3)NAME
xo_err -- emit errors and warnings in multiple formats
LIBRARY
library ``libxo''
SYNOPSIS
#include <libxo/xo.h>
void
xo_warn(const char *fmt, ...);
void
xo_warnx(const char *fmt, ...);
void
xo_warn_c(int code, const char *fmt, ...);
void
xo_warn_hc(xo_handle_t *xop, int code, const char *fmt, ...);
void
xo_err(int eval, const char *fmt, ...);
void
xo_errc(int eval, int code, const char *fmt, ...);
void
xo_errx(int eval, const char *fmt, ...);
void
xo_message(const char *fmt, ...);
void
xo_message_c(int code, const char *fmt, ...);
void
xo_message_hc(xo_handle_t *xop, int code, const char *fmt, ...);
void
xo_message_hcv(xo_handle_t *xop, int code, const char *fmt, va_list vap);
DESCRIPTION
Many programs make use of the standard library functions err(3) and warn(3) to generate errors and warnings for the user. libxo wants to
pass that information via the current output style, and provides compatible functions to allow this.
These functions display the program name, a colon, a formatted message based on the arguments, and then optionally a colon and an error mes-
sage associated with either errno or the code parameter.
EXAMPLE:
if (open(filename, O_RDONLY) < 0)
xo_err(1, "cannot open file '%s'", filename);
ADDITIONAL DOCUMENTATION
Complete documentation can be found on github:
http://juniper.github.io/libxo/libxo-manual.html
libxo lives on github as:
https://github.com/Juniper/libxo
The latest release of libxo is available at:
https://github.com/Juniper/libxo/releases
SEE ALSO xo_emit(3)HISTORY
The libxo library was added in FreeBSD 11.0.
AUTHOR
Phil Shafer
BSD December 4, 2014 BSD