src/ucx/string.h

changeset 259
2f5dea574a75
parent 251
fae240d633fc
child 275
96f643d30ff1
child 283
c3b6ff227481
equal deleted inserted replaced
258:d9f4285c795c 259:2f5dea574a75
1 /* 1 /*
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3 * 3 *
4 * Copyright 2017 Olaf Wintermann. All rights reserved. 4 * Copyright 2017 Mike Becker, Olaf Wintermann All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met: 7 * modification, are permitted provided that the following conditions are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
46 */ 46 */
47 47
48 #ifndef UCX_STRING_H 48 #ifndef UCX_STRING_H
49 #define UCX_STRING_H 49 #define UCX_STRING_H
50 50
51 #include <ucx/ucx.h> 51 #include "ucx.h"
52 #include <ucx/allocator.h> 52 #include "allocator.h"
53 #include <stddef.h> 53 #include <stddef.h>
54 54
55 /** Shortcut for a <code>sstr_t struct</code> literal. */ 55 /** Shortcut for a <code>sstr_t struct</code> literal. */
56 #define ST(s) { (char*)s, sizeof(s)-1 } 56 #define ST(s) { (char*)s, sizeof(s)-1 }
57 57

mercurial