Advertisement
Guest User

о

a guest
May 26th, 2015
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.86 KB | None | 0 0
  1. #include <stdio.h>  
  2. #include <unistd.h>  
  3. #include <fcntl.h>  
  4. #include <errno.h>  
  5. #include <termios.h>
  6. #include "libiks483.h"
  7.  
  8. int main(int argc, char **argv[])
  9. {
  10.     int fd;
  11.     uchar buff[BUFSIZE];
  12.     int errcode, len, i;
  13.     unsigned int sum;
  14.     unsigned long int  cash;
  15.  
  16.    
  17.  
  18.    if (argc<1) {
  19.          printf("usage : \n\t./printme summ_in_coins\n\t\n");
  20.         } else {
  21.            cash=**argv[1];
  22.  
  23.    fd = FPInit(PORTNUM, B9600, TIMEOUT);
  24.     if (fd == -1) {
  25.         printf("open port failed\n");
  26.         return(1);
  27.     }
  28.  
  29.  
  30.  
  31.     len = FPGetDate(buff);
  32.     printf("mm: %x  dd: %x  yy: %x\n",buff[0],buff[1],buff[2]);
  33.  
  34.     len=FPAvans(cash);
  35.     len=FPGive(11);
  36.  
  37.     len=FPComment("HELLO,WORLD",1);
  38.     len=FPDiscount(0,1000,1,"");
  39.     len=FPPayment(3,15000,1,"inet");
  40.     len=FPArtXReport(0);
  41.  
  42.     FPClose();
  43.  
  44.  
  45.         }
  46.  
  47.  
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement