23 lines
947 B
C
23 lines
947 B
C
/// @file
|
|
/// @brief Task2: function definitions
|
|
|
|
#include "task2.h" // task2_copy, task2_copy_n, task2_compare, task2_compare_n
|
|
|
|
#include <stddef.h> // size_t
|
|
|
|
/// @todo Include C standard library headers as needed, but note that
|
|
/// You are **not** allowed to use functionality from the header <string.h>
|
|
#include <stdlib.h> // NULL
|
|
|
|
/// @todo Implement function 'task2_compare' as declared and specified in task2.h
|
|
int task2_compare(const char* a, const char* b) { return 0; }
|
|
|
|
/// @todo Implement function 'task2_compare_n' as declared and specified in task2.h
|
|
int task2_compare_n(const char* a, const char* b, size_t count) { return 0; }
|
|
|
|
/// @todo Implement function 'task2_copy' as declared and specified in task2.h
|
|
char* task2_copy(char* dest, const char* src) { return NULL; }
|
|
|
|
/// @todo Implement function 'task2_copy_n' as declared and specified in task2.h
|
|
char* task2_copy_n(char* dest, const char* src, size_t count) { return NULL; }
|