07-23-2004
By character you mean ASCII character?
8 bits or byte can hold 256 possible values (2^8=256)
C char is 1 byte
C undigned char 1 byte
so then...
C short int 2 bytes
C unsigned short int 2 bytes
C (long) int 4 bytes
C float 4 bytes
C double 8 bytes
In Java byte
By character you mean UCS-2?
16 bits
C short int
C int (sometimes)
Java char and Java short int
By character you mean UCS-4
32 bits
C int (usual)
C long int
Java int
64 bits longword or quadword
C long int (on 64 bit machine)
Java long int
Sometimes it depends on your machine
To allocate space to hold 14 int's
int *ip = malloc(14 * sizeof(int));
whould make room for 14 integers depending on your machine.
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Anybody knows how to setup Maximum number of threads per user or some other value on Sun Solaris 8. (1 Reply)
Discussion started by: s_aamir
1 Replies
2. Shell Programming and Scripting
Hey , I want to check the row in a file with maximum characters .
the output sud contain that row number along with the no of characters. (4 Replies)
Discussion started by: mohapatra
4 Replies
3. UNIX and Linux Applications
Hi,
Can anyone help me? An input file has three lines. Each line should only be 2098 as number of characters however line 2 of the input file has more than the maximum number of characters, it exceeded up to 4098. What should I do so that could handle maximum number of characters? that it could... (1 Reply)
Discussion started by: chrysSty
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
What is the maximum number of arguments that could be passed to zsh ?
To find out that I tried a simple script.
And the maximum number of arguments that could be passed turned out to be 23394
#! /bin/zsh
arg=1
i=1
subIndex=23000
while
do
arg=$arg" "$i
i=$(($i + 1))... (9 Replies)
Discussion started by: matrixmadhan
9 Replies
5. UNIX for Dummies Questions & Answers
what is the maximum number ls can list down (6 Replies)
Discussion started by: karnan
6 Replies
6. Shell Programming and Scripting
Hello, Would someone guide me on how to write a shell script the would search for a phone no using at the end text file using sed or awk and store it in a varaible or print it.
The text file is in this form
text or numbers in first line
text or numbers in second line
.
.
.
Firsname... (6 Replies)
Discussion started by: amuthiga
6 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I have a question regarding the awk command. Here is the line I need to grep:
1 F= -.13250138E+03 E0= -.13249556E+03 d E =-.174650E-01 mag= 35.2157
Instead of displaying the number in red I would like to store it as a variable such as X. Is there a way to do this? Thanks for any... (3 Replies)
Discussion started by: modey3
3 Replies
8. Shell Programming and Scripting
Hi,
Could any one please let me know what is the maximum number of characters
that will fit into a single line of a flat file on a unix.
Thanks. (1 Reply)
Discussion started by: Shivdatta
1 Replies
9. Shell Programming and Scripting
I am trying to calculate the maximum number from four numbers input by the user. I have the following code, but it does not work. It says there's an error with the last line "done". Any help would be appreciated.
max=0
echo "Please enter four numbers: "
for i in 1 2 3 4
do
read number... (17 Replies)
Discussion started by: itech4814
17 Replies
LEARN ABOUT DEBIAN
sensible-mda
SENSIBLE-MDA(8) System Manager's Manual SENSIBLE-MDA(8)
NAME
sensible-mda - a generic local MDA router for Debian systems
SYNOPSIS
sensible-mda from to detail client-addr
DESCRIPTION
sensible-mda is used to simplify the installation and configuration of sendmail(8) , or other MTAs for use on Debian systems. With sensi-
ble-mda, sendmail can support a plethora of MDAs (procmail, maildrop, deliver, etc.) without having pick any one of them as required.
FUNCTION
sensible-mda is called by sendmail as a local mailer when the following exists in sendmail.mc:
define(`LOCAL_MAILER_ARGS', `sensible-mda $g $u $h ${client_addr}')dnl
sensible-mda will look for the following MDAs (in this order), and pass the mail on to the first SUID MDA found (Or first found MDA, if run
w/euid=root): procmail(1), maildrop(1), deliver(8), mail.local(8)
OPTIONS
Available command line options are the following:
from The sender of this email (sendmail $g variable)
to The recipient of this email (sendmail $u variable)
detail The detail portion of the recipient userid (sendmail $h variable) - ie:
cowboy+sendmail@debian.org
client-addr
TCP/IP address of the sender (sendmail ${client_addr} variable) Not used (for the nonce)
FILES
/etc/mail/sendmail.mc
sendmail m4 input to generate sendmail.cf
/etc/mail/sendmail.cf
actual sendmail configuration file (treated as a binary file)
SEE ALSO
sendmail(8), procmail(1), maildrop(1), deliver(8), mail.local(8)
BUGS
None known so far.
AUTHOR
Richard Nelson <cowboy@debian.org>
HISTORY
4th Berkeley Distribution October 21 1999 SENSIBLE-MDA(8)