Changeset 141b311 in rtems


Ignore:
Timestamp:
Dec 12, 2011, 3:17:33 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
b1345b2
Parents:
ebd6c93
Message:

2011-12-12 Sebastian Huber <sebastian.huber@…>

  • score/src/wkstringduplicate.c: New file.
  • score/Makefile.am: Reflect change above.
  • score/include/rtems/score/wkspace.h: Declare _Workspace_String_duplicate().
Location:
cpukit
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rebd6c93 r141b311  
     12011-12-12      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * score/src/wkstringduplicate.c: New file.
     4        * score/Makefile.am: Reflect change above.
     5        * score/include/rtems/score/wkspace.h: Declare
     6        _Workspace_String_duplicate().
     7
    182011-12-10      Ralf Corsépius <ralf.corsepius@rtems.org>
    29
  • cpukit/score/Makefile.am

    rebd6c93 r141b311  
    330330    src/chainextract.c src/chainget.c src/chaininsert.c \
    331331    src/chainappendempty.c src/chainprependempty.c src/chaingetempty.c \
    332     src/interr.c src/isr.c src/wkspace.c
     332    src/interr.c src/isr.c src/wkspace.c src/wkstringduplicate.c
    333333
    334334EXTRA_DIST = src/Unlimited.txt
  • cpukit/score/include/rtems/score/wkspace.h

    rebd6c93 r141b311  
    100100);
    101101
     102/**
     103 * @brief Duplicates the @a string with memory from the Workspace.
     104 *
     105 * If the @a string length exceeds @a maxlen, then the additional characters
     106 * will be discarded.
     107 *
     108 * @param[in] string Pointer to zero terminated string.
     109 * @param[in] maxlen Maximum length of the duplicated string.
     110 *
     111 * @return NULL Not enough memory.
     112 * @return other Duplicated string.
     113 */
     114char *_Workspace_String_duplicate(
     115  const char *string,
     116  size_t maxlen
     117);
     118
    102119#ifndef __RTEMS_APPLICATION__
    103120#include <rtems/score/wkspace.inl>
Note: See TracChangeset for help on using the changeset viewer.