Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <unistd.h>
- #include <fcntl.h>
- #include <errno.h>
- #include <termios.h>
- #include "libiks483.h"
- int main(int argc, char **argv[])
- {
- int fd;
- uchar buff[BUFSIZE];
- int errcode, len, i;
- unsigned int sum;
- unsigned long int cash;
- if (argc<1) {
- printf("usage : \n\t./printme summ_in_coins\n\t\n");
- } else {
- cash=**argv[1];
- fd = FPInit(PORTNUM, B9600, TIMEOUT);
- if (fd == -1) {
- printf("open port failed\n");
- return(1);
- }
- len = FPGetDate(buff);
- printf("mm: %x dd: %x yy: %x\n",buff[0],buff[1],buff[2]);
- len=FPAvans(cash);
- len=FPGive(11);
- len=FPComment("HELLO,WORLD",1);
- len=FPDiscount(0,1000,1,"");
- len=FPPayment(3,15000,1,"inet");
- len=FPArtXReport(0);
- FPClose();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement