Changeset 1433ecda in mainline for uspace/lib/pcut/src/os/stdc.c


Ignore:
Timestamp:
2018-04-04T15:42:37Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/pcut/src/os/stdc.c

    r47b2d7e3 r1433ecda  
    3535#include "../internal.h"
    3636
    37 int pcut_str_equals(const char *a, const char *b) {
     37int pcut_str_equals(const char *a, const char *b)
     38{
    3839        return strcmp(a, b) == 0;
    3940}
    4041
    41 int pcut_str_start_equals(const char *a, const char *b, int len) {
     42int pcut_str_start_equals(const char *a, const char *b, int len)
     43{
    4244        return strncmp(a, b, len) == 0;
    4345}
    4446
    45 int pcut_str_size(const char *s) {
     47int pcut_str_size(const char *s)
     48{
    4649        return strlen(s);
    4750}
    4851
    49 int pcut_str_to_int(const char *s) {
     52int pcut_str_to_int(const char *s)
     53{
    5054        return atoi(s);
    5155}
    5256
    53 char *pcut_str_find_char(const char *haystack, const char needle) {
     57char *pcut_str_find_char(const char *haystack, const char needle)
     58{
    5459        return strchr(haystack, needle);
    5560}
    5661
    57 void pcut_str_error(int error, char *buffer, int size) {
     62void pcut_str_error(int error, char *buffer, int size)
     63{
    5864        const char *str = strerror(error);
    5965        if (str == NULL) {
Note: See TracChangeset for help on using the changeset viewer.