Removed casts made superfluous by adding newstr to string.h
This commit is contained in:
parent
092c81b39c
commit
3f3a9ed279
@ -8,7 +8,7 @@ int i;
|
|||||||
char *buffer =" ";
|
char *buffer =" ";
|
||||||
String *s;
|
String *s;
|
||||||
|
|
||||||
s= (String *) _newstr(buffer);
|
s= _newstr(buffer);
|
||||||
strncpy(s->strval,&i,2);
|
strncpy(s->strval,&i,2);
|
||||||
return(s);
|
return(s);
|
||||||
}
|
}
|
||||||
@ -18,7 +18,7 @@ double d;
|
|||||||
char *buffer =" ";
|
char *buffer =" ";
|
||||||
String *s;
|
String *s;
|
||||||
|
|
||||||
s= (String *) _newstr(buffer);
|
s= _newstr(buffer);
|
||||||
strncpy(s->strval,&d,8);
|
strncpy(s->strval,&d,8);
|
||||||
return(s);
|
return(s);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user