Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.
2 added 51 characters in body
source | link

C (gcc), 140 140  134 bytes

This code outputs a negative, 0 or a positive for <,= or > respectively.

i;n;p;q;g(char*s){for(i=n=0;*s&&++n&&*s-46;i=i*10+*s++-48);i=i;}f(char*a,char*b){for(p=q=0;(*a||*b)&&!(p-q);p=q=0;*a+*b&&p==q;b+=n)p=g(a),a+=n,q=g(b),b+=n;a=p;a=p-q;}

Try it online!Try it online!

Edits:

  • Saved 6 bytes thanks to ceilingcat !

C (gcc), 140 bytes

This code outputs a negative, 0 or a positive for <,= or > respectively.

i;n;p;q;g(char*s){for(i=n=0;*s&&++n&&*s-46;i=i*10+*s++-48);i=i;}f(char*a,char*b){for(p=q=0;(*a||*b)&&!(p-q);)p=g(a),a+=n,q=g(b),b+=n;a=p-q;}

Try it online!

C (gcc),  140  134 bytes

This code outputs a negative, 0 or a positive for <,= or > respectively.

i;n;p;q;g(char*s){for(i=n=0;*s&&++n&&*s-46;i=i*10+*s++-48);i=i;}f(char*a,char*b){for(p=q=0;*a+*b&&p==q;b+=n)p=g(a),a+=n,q=g(b);a=p-q;}

Try it online!

Edits:

  • Saved 6 bytes thanks to ceilingcat !
1
source | link

C (gcc), 140 bytes

This code outputs a negative, 0 or a positive for <,= or > respectively.

i;n;p;q;g(char*s){for(i=n=0;*s&&++n&&*s-46;i=i*10+*s++-48);i=i;}f(char*a,char*b){for(p=q=0;(*a||*b)&&!(p-q);)p=g(a),a+=n,q=g(b),b+=n;a=p-q;}

Try it online!