Owner@pavilion ~
$ splint new.c
Splint 3.1.1 --- 02 May 2003
new.c:3:6: Function main declared to return void, should return int
The function main does not match the expected type. (Use -maintype to inhibit
warning)
new.c: (in function main)
new.c:9:2: Unrecognized identifier: scanf_s
/* is this some function on your compiler? Use something standard to get a number. */
Identifier used in code has not been declared. (Use -unrecog to inhibit
warning)
new.c:10:18: Variable temp_celcius used before definition
An rvalue is used that may not be initialized to a value on some execution
path. (Use -usedef to inhibit warning)
new.c:10:3: Assignment of double to float:
temp_kelvin = (temp_celcius + 273.15)
/* Compilers tend to promote floating point literals to double type. Use 273.15f to force otherwise. */
To allow all numeric types to match, use +relaxtypes.
new.c:11:6: Assignment of double to float:
temp_farhenheit = (((1.8) * temp_celcius) + 32)
Finished checking --- 5 code warnings