joke-weather-app/error.cpp

17 lines
267 B
C++
Raw Normal View History

2023-07-14 09:06:16 +00:00
#include <iostream>
#include <cstdlib>
#include <string>
#include <unistd.h>
#include "error.h"
using namespace std;
void error(string msg) {
cerr << msg << endl;
}
void stop(string msg) {
cerr << msg << endl;
usleep(3000000);
exit(EXIT_FAILURE);
}