home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / parallel / 2918 < prev    next >
Encoding:
Text File  |  1993-01-12  |  2.0 KB  |  59 lines

  1. Newsgroups: comp.parallel
  2. Path: sparky!uunet!gatech!hubcap!fpst
  3. From: rg@tu-graz.ac.at (Robert Greimel)
  4. Subject: Re: putstring() in PVM
  5. Message-ID: <1993Jan12.200540.26995@hubcap.clemson.edu>
  6. Apparently-To: comp-parallel@uunet.uu.net
  7. Sender: news@fstgds02.tu-graz.ac.at (USENET News System)
  8. Nntp-Posting-Host: fmechsg01.tu-graz.ac.at
  9. Organization: Technical University of Graz, Austria
  10. X-Newsreader: TIN [version 1.1 PL6]
  11. References: <1993Jan11.164037.23193@hubcap.clemson.edu>
  12. Date: Tue, 12 Jan 93 18:12:58 GMT
  13. Approved: parallel@hubcap.clemson.edu
  14. Lines: 43
  15.  
  16. Till Bubeck (bubeck@peanuts.informatik.uni-tuebingen.de) wrote:
  17. : In article <1993Jan8.162353.12739@draper.com>, hct4708@ccfds2.draper.com (Hung-Chou Tai) writes:
  18. : |> I'm just starting to program using PVM.  I would like to pass a
  19. : |> string from the host machine to a slave using putstring().
  20. : |> 
  21. : |> However, I do not know what to put for the second argument of
  22. : |> putstring.  Is it the length of the string, or is it the number of
  23. : |> strings I want to pass?
  24. : Which second argument? I included the prototype for putstring():
  25. :      int putstring(cp)
  26. :           char *cp;
  27.  
  28. Might he be using the FORTRAN interface to PVM. In this case, the
  29. prototype is
  30.  
  31.        CALL FPUTSTRING(CP,INFO)
  32.  
  33.        CHARACTER*(*) CP
  34.        INTEGER       INFO
  35.        
  36. where INFO holds the error code when returning from the subroutine.
  37. There also exists a second subroutine in the FORTRAN interface for 
  38. passing strings
  39.  
  40.        CALL FPUTSTRINGL(CP,LEN,INFO)
  41.  
  42.        CHARACTER*(*) CP
  43.        INTEGER       INFO,LEN
  44.  
  45.  
  46. Robert Greimel
  47.  
  48. ------------------------------------------------------------------------
  49. Robert Greimel                   Tel.  : +43 316 987-746
  50. Dep. TSS                         Fax   : +43 316 987-777
  51. AVL List Gmbh.                   e-mail: rg@fmechsg01.tu-graz.ac.at
  52. Kleiststrasse 48
  53. A-8020 Graz
  54. AUSTRIA                          C= AMIGA is best, forget the rest
  55. ------------------------------------------------------------------------
  56.  
  57.