P02's bit-manipulation lab added

This commit is contained in:
Andreas Gieriet
2020-02-22 04:52:43 +01:00
parent 75495f40a2
commit 1d36901fdd
4 changed files with 242 additions and 0 deletions
@@ -0,0 +1,53 @@
/* ----------------------------------------------------------------------------
* -- _____ ______ _____ -
* -- |_ _| | ____|/ ____| -
* -- | | _ __ | |__ | (___ Institute of Embedded Systems -
* -- | | | '_ \| __| \___ \ Zuercher Hochschule Winterthur -
* -- _| |_| | | | |____ ____) | (University of Applied Sciences) -
* -- |_____|_| |_|______|_____/ 8401 Winterthur, Switzerland -
* ----------------------------------------------------------------------------
*/
/**
* @file
* @brief Lab P02 bit Manipulation
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#define USAGE "usage: %s value [bitnr]\n value in the range 0..255\n bitnr in the range 0..7\n"
/**
* @brief main function
* @returns always success (0)
*/
int main(int argc, const char* argv[])
{
// check arguments and get the values
// BEGIN-STUDENTS-TO-ADD-CODE
// END-STUDENTS-TO-ADD-CODE
if (argc == 2) {
// BEGIN-STUDENTS-TO-ADD-CODE
// END-STUDENTS-TO-ADD-CODE
} else {
// BEGIN-STUDENTS-TO-ADD-CODE
// END-STUDENTS-TO-ADD-CODE
}
return EXIT_SUCCESS;
}