Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: migur
  • Order by date
  1. migur

    Problems of float or double calculations being not quite exact.

    Guys, you can not say if(sum - (double)intsum == 0.0) no no! double delta = 0.005; // use your value here then always compare those two with your delta! x - y < delta in this fashion. Don't forget that float or double keeps approximation to the real value, for example float x=1.0; could be...
  2. migur

    Hi, I want to validate some da

    Assuming that tokens[3] contains &quot;1234567890&quot; following happens: after strcpy(xpto, tokens[3]) xpto has &quot;1234567890&quot; after strncpy(var3_4, xpto+2, 2) var3_4 has &quot;34..garbage..&quot; - do not forget that strncpy does not insert terminating 0. What about var1_2 - you don't...
  3. migur

    silly question

    one more (plain C) solution: #include <stdio.h> main(int argc, char *argv[] { char buf[80], *convert_currency(); double amnt...
  4. migur

    how do you send messages from one APP to another?

    it is called interprocess communication. You did not indicate whether these apps are on the same machine or not. There are pipes, messages, sockets, shared memory: many different IPC facilities. It is very much OS dependent. On Unix I would use messages or tcp sockets.
  5. migur

    2D Array Problem

    not clear what the task is.... int hi = 1, hello = 2; int arr[hi][hello];
  6. migur

    Interesting FTP Problem

    Another way is to use .netrc file, where one can put following: machine hostname login username password pwd put from_file to_file quit So, when you say ftp hostname it would automatically login and put a file there. Remember, that you are revealing username/passwd, so be carefull. Michael.
  7. migur

    how to append using ftp_api functions

    I am writing a program that performs multiple ftp functions and trying not to use any script. In SCO we have good ftp_api (SLIB) functions, but there is no function corresponding to APPEND ftp command. Any idea how to implement APPEND without scripting? I'd hate to get, delete, locally append...

Part and Inventory Search

Back
Top