swab(1) #73
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "swab"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements #22.
Looks really good!
@ -102,2 +102,4 @@
$(CC) $(CFLAGS) -o $@ src/strcmp.c
.PHONY: swab
swab: build/bin/swab
Don’t forget to add swab to the all target!
@ -0,0 +1,72 @@
use std::{
Needs a copyright header :)
@ -0,0 +51,4 @@
buf.resize(wordsize, 0);
loop {
match input.read(&mut buf) {
This seems cleaner to me, but it doesn’t really matter:
I prefer my style of mostly using the match statement.
Pull request closed