Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- translate.c: In function 'main':
- translate.c:65: warning: passing argument 2 of 'strncmp' makes pointer from integer without a cast
- /usr/include/string.h:146: note: expected 'const char *' but argument is of type 'char'
- translate.c:67: warning: passing argument 1 of 'strcpy' makes pointer from integer without a cast
- /usr/include/string.h:128: note: expected 'char * __restrict__' but argument is of type 'char'
- translate.c:88: warning: passing argument 1 of 'strcpy' from incompatible pointer type
- /usr/include/string.h:128: note: expected 'char * __restrict__' but argument is of type 'struct node *'
- translate.c:100: warning: format '%s' expects type 'char *', but argument 3 has type 'struct node *'
- #include<stdio.h>
- #include<stdlib.h>
- #include<string.h>
- typedef struct node{
- char seq[300];
- struct node* next;
- } NODE;
- int
- main(int argc, char* argv[]){
- int i, j=0;
- FILE *fin, *fout, *fop;
- char code1[100], code2[100], prot1[2], prot2[4];
- NODE *current, *first, *prev;
- fin = fopen( argv[1], "r");
- fout = fopen( argv[2], "w");
- fop = fopen("codeoflife.txt", "r");
- code2[0] = '