weather.c
/* write api key to plaintext. Called
when flag -k is passed */
write api key to plaintext. Called
when flag -k is passed
write api key to plaintext . Called when flag - k is passed
int write_api_key(char *key)
{
	FILE *file;
	file = fopen("key.txt", "w");
	if (file)
	{
		fwrite(key, strlen(key), 1, file);
		fclose(file);
	}
}
int write_api_key ( char * key ) { FILE * file ; file = fopen ( " " , " " ) ; if ( file ) { fwrite ( key , strlen ( key ) , 1 , file ) ; fclose ( file ) ; } }
write api key to plaintext.
write api key to plaintext .