Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
Add string.h which includes memset
Browse files Browse the repository at this point in the history
  • Loading branch information
noriyotcp committed Jun 29, 2017
1 parent 9c54c1c commit 54760f4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/arch/x86_64/c/tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#include <stdio.h>
#include <stdlib.h>
// #include <string.h>
#include <string.h>
#include <errno.h>
#include <tasks.h>
#include <processor.h>
Expand Down
19 changes: 19 additions & 0 deletions src/c_kernel/include/string.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Copyright (c) 2016-2017 Utero OS Developers. See the COPYRIGHT
// file at the top-level directory of this distribution.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// Functions are taken from musl/include/string.h

#ifndef STRING_H
#define STRING_H

#include "bits/alltypes.h"

void* memset(void*, int, size_t);

#endif /* end of include guard: STRING_H */

0 comments on commit 54760f4

Please sign in to comment.