Removed casts made superfluous by adding newstr to string.h
This commit is contained in:
parent
f7027ba7e4
commit
682e5d9b8a
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue