Tag: program

Parsing data with strtok in C
Post

Parsing data with strtok in C

Originally posted on opensource. The strtok function is a handy way to read and interpret data from strings. Use it in your next project to simplify how you read data into your program. Some programs can just process an entire file at once, and other programs need to examine the file line-by-line. In the latter...

How to write your first Quine program
Post

How to write your first Quine program

A quick guide to self replicating programs in Python A quine-relays: a Python program generates a Java program that generates a Ruby program that generates the first Python program Aim of this guide is to show how to write a program that outputs its own source code with no input. This family of programs is called Quine....