Hi, I have some code. Everything works as it should, but, when I call view_all_contacts() to print the data, each line doesn't line up as it should. I get tab keys between each line.
The problem code is this:
Here is the rest of the code:
Can someone tell me what is wrong with the code? Thanks for your time.
i was playing with maxint stuff when i found that i could not find a propper way to do
a printf() auf a imaxdiv_t. since nobody seems to use it google found nothing.
i tried to find a PRIxy code but no success.
example:
#include <stdio.h>
#include <inttypes.h>
int main()
{
... (2 Replies)
hello, Im at another part of the program i am writing. Where i think i'm going to need to use the printf command.
If anyone can help me figure out the printf layout i would greatly appreicate it.
thanks (4 Replies)
What is the output of the following program considering an x86 based parameter passing sequence where stack grows towards lower memory addresses and that arguments are evaluated from right to left:
int i=10;
int f1()
{
static int i = 15;
printf("f1:%d ", i);
return i--;
}
main()
{... (2 Replies)
How to print output in following format?
A..................ok
AA................ok
AAA..............ok
AAAAAA........ok
"ok" one under one (4 Replies)
I am trying to display a number with commas
printf "%d\n" 323232
printf "%d\n" 1234567
I want the output to be:
323,232
1,234,567
I tried to change %d to other formats and could find the solution.
any idea? (7 Replies)
I am trying to display a number with commas
printf "%d\n" 323232
printf "%d\n" 1234567
I want the output to be:
323,232
1,234,567
I tried to change %d to other formats and could find the solution.
any idea? (7 Replies)
Hi,
I have just completed my first script (:D) and now i just need to format it with printf.
This is what I have:
#!/bin/ksh
TOTB=0
TOTF=0
TOTI=0
HOST=`hostname`
echo " FSYSTEM BLKS FREE INUSE MOUNTEDON"
df -m | grep -v ":"|grep -v Free|grep -v "/proc"| while read FSYSTEM... (2 Replies)
I have this command like that has %s in it, I know %s calls a column, but I am not sure I understand which column (I mean for my case I can check the input file, but I want to know how is this %s used, how comes tha same symbo; gives different columns in one command line:
{printf "grep %s... (22 Replies)
printf "%5.5\n" "1234567890"
will print 12345 . How do I get it to print
67890
Essentially, I just want the last 5 characters rather than the first 5. (4 Replies)
Not able to sorting two fileds resolved printf issue
01-1000/9|JAN
01-0000/6|MAN
01-1010/2|JAN
01-1010/2|JAN
01-1010/2|JAN
01-1000/9|JAN
01-1000/9|JAN
01-1000/9|SAA
01-1000/9|SAA
01-0000/6|SAN
01-0000/6|SAN
1.sort -t'|' -k1,1n -k2,2 file (3 Replies)
Discussion started by: kalia4u
3 Replies
LEARN ABOUT CENTOS
ecppll
ecppll(1) Tntnet users guide ecppll(1)NAME
ecppll - language-linker for ecpp
SYNOPSIS
ecppll [-I dir] [-F] [-o output-filename] ecpp-filename [translated-data]
DESCRIPTION
Ecppll is the language-linker for ecpp. This program combines the data of a ecpp-file with translated phrases from a source-file and gen-
erates a data-file used by tntnet to look up translated data. The translated data file must contain the original phrase and the translated
version separated by tab line by line.
To generate a language file the generated files of all components of a component-library must be zipped. The resulting zip-file must have
the same basename as the component-library and the language-code as the extension. Tntnet tries to find the langage library by first
appending the value of the query parameter LANG to the name of the componentlibrary. If the file is not found, the environment-variable
LANG is used. If that is neither found, the default data from the original component is used.
OPTIONS -F Fail on warning. If a phrase is not found in the language-data or in language-data is a phrase not used it the ecpp-file, ecppll
warns about it to standard output. If this flag is set, ecppll returns a non-zero return-code.
-I dir Search include-files in directory. This option can be passed multiple times. All specified directories are searched in turn for
include-files.
-o filename
Specify output filename
AUTHOR
This manual page was written by Tommi Makitalo <tommi@tntnet.org>.
SEE ALSO tntnet(1), ecpp(7), ecppl(1)Tntnet 2006-08-26 ecppll(1)