let's suppress in the light of the specific nights, but don't explode the precise lemons
Cybernetic control of society.
Everything on-line and monitored in real-time.
: From: "EPIC-News" <firstname.lastname@example.org>
: Date: 05 Jun 1997 19:01:58 -0400
: Subject: EPIC: Clinton Endorses Privacy Rights
: In a commencement address at Morgan State University on May 18,
: President Clinton called privacy "one of our most cherished freedoms"
: and said that technology should not "break down the wall of privacy and
: autonomy free citizens are guaranteed in a free society."
Is President Clinton being honest?
He supports Cl...printf rounding
The standard specifies that printf "rounds the value to the appropiate
number of digits".
This rounding is round to the nearest or something else?
Is this rounding affected by the rounding mode?
I have implemented rounding to the nearest, but now I am not so sure.
Should I use the current rounding mode of the machine?
Where is the precise type of rounding of printf specified in the standard?
Thanks in advance and sorry if this is a stupid question.
Le 01/06/2015 11:30, jacob navia a écrit :
> The standard specifies that printf "rounds the ...strange use of format specifier in printf
Here in this thread
Tydr Schnubbis in 3rd reply used %d for printing char's...isn't it
> Here in this thread
> Tydr Schnubbis in 3rd reply used %d for printing char's...isn't it
No. It will print them in decimal though, not as characters.
the output is 10
the output is 20
how did it return the last defined variable?
why does printf( ) works from right to left?
> int a=10;
Undefined behaviour (expected argument value missing).
[Some compilers - eg gcc - can spot this.]
> the output is 10
Sheer accident of implementation. (The assigned value
has probably leaked into the argument register/location
which printf looks at for the first %-inserted value.)
> int a=10,b=20;
> printf("%d &qu...Age specific death rates to Life Expectancy
I can calculate age specific death rates for about ten years of population
data and I need to get to Life expectancy (at age 0 and age 65). What's the
best way to go about this in SAS?
"The beggar laughs in the face of the thief"
Movie session times on Messenger - add Movie Scout today!
Definitely NOT my areas of expertise, but...some strange printf fuction in C programming...
I found some strange printf fuction in C programming...
what does following means?
printf("\033[H\033[J"); ==>what does that mean?
printf("\033[?25h"); ==>what does that mean?
Have a nice day.
On Wed, 1 Nov 2006 21:35:14 +0900, somez72
> I found some strange printf fuction in C programming...
> what does following means?
> printf("\033[H\033[J"); ==>what does that mean?
> ...Extracting printf(...) from (void) printf(....)
How to search for (void) from the line.
ex: (void) printf(....)
I want to search if (void) is there at the beggining of the line.. if
exist then extract printf(....) function.
Please let me know how it can be done or tell me the reference so that
I can try.
Thanks & Regards
On Feb 2, 9:04 am, guru <guru.nav...@gmail.com> wrote:
> HI all
> How to search for (void) from the line.
> ex: (void) printf(....)
> I want to search if (void) is there at the beggining of the line.. if
> exist then extract printf(....) function.
> Plea...question about printf in multithread daemon app ?
host: windows xp sp2, suse linux enterprise server 9 sp2
compiler: vs.net 2003, gcc 3.3.3
My app runs ok before it is made a daemon app. it always exits after
running for a time after it is
made a daemon app. In my app, I call printf to print debug info in
I guess because printf is not thread-safe or because printf is not
supported by daemon app, so I
comment all of the printf calls and the daemon app runs well.
so my question is :
in daemon all, can printf call in many threads without synch lock
cause the app exit ?
>Ver...US-TX-Austin: Business Analyst, Writing automation system specifications, workin (45293657616)
US-TX-Austin: Business Analyst, Writing automation system specifications, workin (45293657616)
Position: Business Analyst
Location: Austin TX
Skills: Writing automation system specifications.
Access, SAS, SPSS, Excel, QLP, Business Objects or
Knowledge of capabilities and limitations of computer
systems and ability to troubleshoot computer output errors.
...printf()-like macro in C90
I want to have debugging macro or function that I can use like:
DEBUG("bla bla bla %d bla %s bla bla %d %d", 1, "42", 3, 4);
just as with printf. I want to avoid implementing this functionality
myself with varargs etc.
Now, in my case, I cannot use printf etc to output with. I have to use
some other function that can only take a string. Let's call it
output(char* str). Today, when debugging, I insert something like:
sprintf(buffer, "bla bla bla %d bla %s bla bla %d %d", 1, "42", 3,
This is te...Placing variables at a specific location (address) using microblaze GCC
I am trying to figure out the ins and outs of the MB-GCC compiler. I am
not familiar with how to place variable at specific locations in
memory. I have used the #pragma directive with other compilers to nail
down variables to specific locations in memory.
Any help would be appreciated. I think that it may also be neccessary
to create another section in memory using the linker. ie .text or .bss
Thanks in adavance.
Specify a new section for your variables, and add this section to your
linker script with the fixed address.
int fixed_data __attribute__ ((section (&q...Any Mac OS X-specific GUI Samba config tools?
It's come to my attention that the SSP project
(http://xamba.sourceforge.net/ssp/) has been abandoned, and doesn't work
properly with Mac OS X Panther. (This project provided Mac OS X-specific
GUI configuration tools for Samba.) I'm well aware of cross-platform
tools, such as SWAT and Webmin, but I was wondering if there are any OS
X-specific GUI Samba configuration tools other than SSP and the very
minimal tools that come with Mac OS X? (FWIW, this isn't for me
personally; it's for a book I'm writing. I'd like to be able to reference
such a tool if i...Format in PRINTF
I have a stringarray containing numbers and letters and want to print
this string to a file. each line should consist of 130 arrayelements,
each element should take two places.
Using this format command: format='(130(A2))' just writes the letters,
but not the numbers.
Anybody an idea???
Thanks a lot
> I have a stringarray containing numbers and letters and want to print
> this string to a file. each line should consist of 130 arrayelements,
> each element should take two places.
> Using this format command: format='(...Loading specific lines of text
I am attempting to use the following command to load a text file:
>A=textscan(fid, '%3f%4f%2f%1c%6f%6f%4f%6f%1c%7f%1c', 'headerlines',1,...
> 'delimiter',' ','multipleDelimsAsOne',1);
My trouble is that I ONLY require lines from files (and there are 96
files with many many lines in each file) that have the letter "A" as
the 10th character. Here is a sample couple of lines from one file:
15362000038 ...wxMac wxString::Printf truncation problem
I've just found a bazaar problem with the wxString::Printf function. It
seems to be truncating all (output) strings at 1023 bytes. Being of an
ominous number I stepped into the framework and found that the BSD vsnprintf
function is not acting as expected.
This version of vsnprintf returns the number of bytes that should have been
written regardless of the byte limit passed. wxWidgets does expect this BUT
it also expects errno to be EOVERFLOW - which it isn't.
I'm running 10.4.3, using XCode...General and specific CM
I have a view on the "whole" CM area I'd like to try on you:
(OK, I know this is a software CM "only" newsgroup, but I couldn't find
any "general" CM group)
I've come to discuss Configuration Management with my co-worker by
dividing it into subcategories. Although I'm not a CM myself, I've
worked closely with "them" at different companies and feel I have some
grasp of the concepts.
Let's get on to my view then, shall we?
This is the general field, where policies on what to manage, how t...Is the Single Unix Specification Irrelevant?
I just discovered the Single Unix Specification (version 3) at
www.unix.org. In view of the rapid evolution of operating systems
in general now, is this spec relevant to Linux and *BSD systems?
Using ( X | KDE ) with OpenBSD?
See Dave's OpenBSD | X | KDE corner at
On 2006-05-27, email@example.com <firstname.lastname@example.org> wrote:
> I just discovered the Single Unix Specification (version 3) at
> www.unix.org. In view of the rapid evolution of operating systems
> in general now, is this spe...use printf
I've got an output of 20 numbers, but I wanno print the first 9 number
with the two digits decimal operator.
I'v egot 1,2,3,4,5,6,7,8 and 9.. but I need 01,02,03,04...
I use printf
echo `printf '%d\n'`9 -> 09
this is ok
but I don't want 010 if I type 10
echo `printf '%d\n'`10 -> 010
Is there another way to do this?
>> On 9 Jul 2006 05:52:29 -0700,
>> "Davide" <email@example.com> said:
> Hi all. I've got an output of 20 numbers, but I wanno
> print the first 9 number with the two digits...atomic printf()? (FILE and multiple process)
AFAIK, when a parent and a child share a open file, if both processes
try to write some message using write(2), the two strings are not
intermixed. I mean, inside of write(2), the output operation will not
be interfered by another write(2) on the shared file object. Right?
What if both process try to printf(3) into the shared FILE * object
instead of write(2)?. Can I expect printf(3) also atomic? (By atomic,
I mean among multiple process that share a open file.)
If each process calls write(2) twice, the order of 4 write(2) calls
are not guaranteed. AFAIK, this is why writev(2) exists. Rig...printf #5
printf("%d %d %d %d ");
whats the output and why !!!!!!!!!!!!!!!!!!!!!!
> void main()
> printf("%d %d %d %d ");
> whats the output and why !!!!!!!!!!!!!!!!!!!!!!
Garbage because it is undefined.
> void main()
> printf("%d %d %d %d ");
> whats the output and why !!!!!!!!!!!!!!!!!!!!!!
If reformats your hard drive, and conta...%% in printf
I hope this is not a FAQ.
What is the output for this? Is it implementation dependent?
int i;for(i=0;i<36;putchar(s[i++]-1));return 0;}
On Sun, 09 Nov 2003 23:22:55 +0530, Ravi wrote:
> I hope this is not a FAQ.
> What is the output for this?
>Is it implementation dependent?
On Mon, 10 Nov 2003 05:08:27 +1100, ASiF wrote:
>> What is the output for this?
Can anyone point to me where can I get specification of ODL of ODMG ?
Especially on how to create a new type ?
Many Thanks In advance
...printf "fails" in extension
I'm trying to "extend" Python by writing a bit of C code. I followed
the example in the Python documentation, and almost everything works
fine. I can build a DLL, fire up an interactive Python session and
import my new module. Methods work almost as expected.
The only problem I'm having is that I can't print to the screen from
the C code. Printing to a file works fine, but neither printf nor
fprintf(stdout,...) puts anything onto the screen.
I'm working in Windows2K, using Python2.3. Is there some trick to get
this to work? I'm wondering if this is a compil...UTF-8 and printf
I'm trying to use printf to give a tabulated format to my output, like
printf "%20s %10s %10s", title, author, date
being title, author and date string variables. The text contained in
these variables is uft-8 encoded, and this makes printf to misalign
the outupt. The reason is that one multi-byte char (for example, a two-
byte char) is counted as several chars (two chars), and thus the
number of spaces required for padding is wrongly calculated.
I searched for discussions about ruby and utf8, and in general it does
not appear as an easy issue. I read abou...Clipping does not work properly with ATI specific card.
I have a little problem in the following case.
Please let me know if you have any solutions or informations.
Using glClipPlane, I am trying to create and draw section edges to a
target polygons with glPolygonMode( GL_LINE ).
According to MSDN library/Clipping explanation,
"For polygons, an entire edge may need to be constructed between
new vertices generated at the clip points."
This is true because I maked sure it using both GL_FILL and GL_LINE
But it seems that some ATI graphics card do not re-constructe...