Pure Programmer
Blue Matrix


Cluster Map

Project: Hexadecimal Filter with Byte Count

Write a filter program that converts the input stream from bytes to hexadecimal representation. Always print two heaxadecimal digits per byte separated by a space. Print 32 bytes per line with the beginning byte count (in hexadecimal) at the start of each line.

Output
$ swiftc HexadecimalFilterByteCount.swift -I . -L . -lUtils error: link command failed with exit code 1 (use -v to see invocation) ld: library not found for -lUtils clang: error: linker command failed with exit code 1 (use -v to see invocation) $ swiftc HexadecimalFilterByteCount.swift -I . -L . -lUtils error: link command failed with exit code 1 (use -v to see invocation) ld: library not found for -lUtils clang: error: linker command failed with exit code 1 (use -v to see invocation) $ swiftc HexadecimalFilterByteCount.swift -I . -L . -lUtils error: link command failed with exit code 1 (use -v to see invocation) ld: library not found for -lUtils clang: error: linker command failed with exit code 1 (use -v to see invocation)

Solution