Depending on Endian-ness and other things, printf may not encounter a zero (NUL) byte in an int = 1. This would say stop printing. I'd say printf() kept on into la-la land. segfault.
Try this something like hack and please don't use void main It will get revenge on you sooner or later.
Assuming this is what you are trying to do. ASCII 1 doesn't display on most terminals.
Hi All,
I have Network color laser printer which is to be configured in AIX5L.
The Model of the printer is OKI C3200.
Will it is supported with AIX 5..? I could not find any drivers for this.
Will any compatible drivers are available for this printer... I tried with the default drivers hplj-4... (2 Replies)
We have Sun OS running on spark :
SunOS ciniwnpr67 5.10 Generic_118833-24 sun4u sparc SUNW,Sun-Fire-V440
Having Physical RAM :
Sol10box # prtconf | grep Mem
Memory size: 8192 Megabytes
My Top Output is :
130 processes: 129 sleeping, 1 on cpu
CPU states: 98.8% idle, 0.2% user, 1.0%... (39 Replies)
From reading my C book, Im aware that the integers have a maximum value which depends on what type of processor you are using (since they use 16-bit or 32-bit instructions).
Now I know pointers are very flexible, since they can reference anything, but in the case of integer pointers, can they... (4 Replies)
Hello,
I'm trying to write a method which will return the extension of a file given the file's name, e.g. test.txt should return txt. I'm using C so am limited to char pointers and arrays. Here is the code as I have it:
char* getext(char *file)
{
char *extension;
int i, j;... (5 Replies)
Hi,
I am using zerofault in AIX to find memory leaks for my server.
zf -c <forked-server>
zf -l 30 <server> <arguments>
Then after some (5 mins ) it terminates core dumping and saying server exited abnormally.
I could not understand the core file generated: its something like show in below... (0 Replies)
hello everybody!
i have aproblem! i dont know how to concatenate const char* with char
const char *buffer;
char *b;
sprintf(b,"result.txt");
strcat(buffer,b);
thanx in advance (4 Replies)
Compiling xpp (The X Printing Panel) on SL6 (RHEL6 essentially):
xpp.cxx: In constructor ‘printFiles::printFiles(int, char**, int&)’:
xpp.cxx:200: error: invalid conversion from ‘const char*’ to ‘char*’
The same error with all c++ constructors - gcc 4.4.4.
If anyone can throw any light on... (8 Replies)
Hi guys,
I am currently receiving the following output in /var/log/syslog and is occurring every second leading to /var directory being full after every 2 days.
Aug 20 17:32:29 opaldn1 sendmail: r7KCOlQm002517: ruleset=check_rcpt, arg1=<postmaster@silverapp6>, relay=, reject=450 4.4.0... (3 Replies)
Pointers are seeming to get the best of me and I get that error in my program.
Here is the code
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define REPORTHEADING1 " Employee Pay Hours Gross Tax Net\n"
#define REPORTHEADING2 " Name ... (1 Reply)
Discussion started by: Plum
1 Replies
LEARN ABOUT DEBIAN
vhdlablvector
VHDLABLVECTOR(3) ABL FUNCTIONS VHDLABLVECTOR(3)NAME
vhdlablvector - gives the index and the name of a vectorized name.
ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in
Paris, France.
Web : http://asim.lip6.fr/recherche/alliance/
E-mail : alliance-users@asim.lip6.fr
SYNOPSYS
#include "abl101.h"
char *vhdlablvector( Name, Index )
char *Name;
long *Index;
PARAMETERS
Name A vectorized name.
Index A pointer to long.
DESCRIPTION
vhdlablvector searches the index of a vectorized name, and the vector's name.
RETURN VALUE
If Name is a vectorized name, vhdlablvector returns the vector's name using namealloc, and its index throw Index. Otherwise, it returns a
null pointer.
EXAMPLE
#include "abl101.h"
long Index;
char *Name;
Name = vhdlablvector( "vec 2", &Index );
/* displays Name:vec, Index:2 */
printf( "Name:%s, Index:%d0, Name, Index );
SEE ALSO abl(1), ablvhdlname(3).
BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools.
ASIM /LIP6 October 1, 1997 VHDLABLVECTOR(3)