Skip to main content
edited tags
Link
200_success
  • 144.2k
  • 22
  • 188
  • 473
Tweeted twitter.com/StackCodeReview/status/984681601161420800
added 533 characters in body
Source Link
sineemore
  • 1.8k
  • 11
  • 33

Example output:

$ wget -qO- 'https://xkcd.com/info.0.json' | juu
{
  "month": "4",
  "num": 1979,
  "link": "",
  "year": "2018",
  "news": "",
  "safe_title": "History",
  "transcript": "",
  "alt": "HISTORIANS: We've decided to trim the past down to make things more manageable. Using BCE/CE, would you rather we lose the odd-numbered or even-numbered years?",
  "img": "https://imgs.xkcd.com/comics/history.png",
  "title": "History",
  "day": "11"
}

Example output:

$ wget -qO- 'https://xkcd.com/info.0.json' | juu
{
  "month": "4",
  "num": 1979,
  "link": "",
  "year": "2018",
  "news": "",
  "safe_title": "History",
  "transcript": "",
  "alt": "HISTORIANS: We've decided to trim the past down to make things more manageable. Using BCE/CE, would you rather we lose the odd-numbered or even-numbered years?",
  "img": "https://imgs.xkcd.com/comics/history.png",
  "title": "History",
  "day": "11"
}
Added my faults section (:
Source Link
sineemore
  • 1.8k
  • 11
  • 33

UPDATE:

  • I missed ALL ferror() calls, fixing this part.
  • Also program doesn't handle SIGPIPE, therefore it may be killed. Just tested it. I don't see a clear solution, should I set SIG_IGN?

UPDATE:

  • I missed ALL ferror() calls, fixing this part.
  • Also program doesn't handle SIGPIPE, therefore it may be killed. Just tested it. I don't see a clear solution, should I set SIG_IGN?
Link to latest file revision
Source Link
sineemore
  • 1.8k
  • 11
  • 33
Loading
added formatting for list of information
Source Link
Malachi
  • 28.7k
  • 11
  • 86
  • 188
Loading
Source Link
sineemore
  • 1.8k
  • 11
  • 33
Loading