mtext_ncat(3m17n)

πŸ“¦
version 1.8.4 Β· 2 versions
, in debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ mtext_ncat ✨

okay bestie, welcome to mtext_ncat(3m17n) from The m17n Library β€” yes it's a section 3 man page, yes we're gonna make it cute, no we are NOT skipping a single detail πŸ’…


🌸 NAME 🌸

mtext_ncat β€” literally just the name, the original leaves the description blank so I'm leaving it blank too, we respect the source material in this house 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

MText* mtext_ncat (MText * mt1, MText * mt2, int n)

πŸ’– DESCRIPTION πŸ’–

so the vibe here is: append a part of an M-text to another. iconic behavior, honestly.

The mtext_ncat() function appends the first n characters of M-text mt2 to the end of M-text mt1 while inheriting all the text properties. every single one. no crumbs left behind πŸ’…

If the length of mt2 is less than n, all characters are copied. like, she'll take what she can get, she's not greedy πŸŽ€

mt2 is not modified. she's just the donor, she stays exactly as she was. no cap 🧚


✨ RETURN VALUE ✨

  • If the operation was successful, mtext_ncat() returns a pointer to the resulting M-text mt1. slay πŸŽ‰
  • If an error is detected, it returns NULL and assigns an error code to the global variable merror_code. 😭 not the merror_code jump scare

πŸ’€ ERRORS πŸ’€

  • MERROR_RANGE

πŸ‘‘ SEE ALSO πŸ‘‘

  • mtext_cat()
  • mtext_cat_char()

Copyright (C) 2001 Information-technology Promotion Agency (IPA)

Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License <http://www.gnu.org/licenses/fdl.html>.


and that's the whole page bestie, every flag, every default, every error code, all of it present and accounted for 🫢

Version 1.8.4 Β· Mon Sep 25 2023 β€” that's the tea, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from