![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Odd .sh behavior in script | robertmcol | UNIX for Dummies Questions & Answers | 2 | 02-10-2008 10:22 AM |
| sed behavior on hp-ux | andy2000 | Shell Programming and Scripting | 8 | 05-04-2007 10:23 PM |
| ls behavior | AtleRamsli | High Level Programming | 10 | 03-26-2002 07:31 AM |
| Telnet behavior | piltrafa | UNIX for Dummies Questions & Answers | 4 | 10-31-2001 03:49 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
ltoa Behavior
I am working with the following code:
#include <stdlib.h> #include <string> #include <iostream> using std::cout; using std::endl; using std::flush; int main() { long lng1 = 123; long lng2 = 4567; cout<<ltoa(lng1)<<ltoa(lng2)<<endl<<flush; return 0; } Instead of receiving the output 1234567, I am receiving 1234123. This is on HP-UX 11.11. Another server, with the same OS, is producing the correct output. Is there a setting that I am missing? What is the cause of this problem? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|