mtext_dup(3m17n)

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

πŸ’– mtext_dup β€” from the m17n Library, manual page mtext_dup(3m17n) πŸ’–

okay bestie, sit down, hydrate, because we're about to talk about copying an M-text and honestly? it's giving low-effort, high-reward. ✨


🌸 NAME 🌸

mtext_dup β€” the function that makes a whole new M-text out of your old one πŸ’…

(yeah the original NAME section was literally just mtext_dup - with nothing after it, so consider that a vibe, not a typo πŸ™ˆ)


πŸ¦‹ SYNOPSIS πŸ¦‹

MText* mtext_dup (MText * mt)

✨ DESCRIPTION ✨

okay so here's the tea β˜• β€” mtext_dup() creates a copy of an M-text. you hand it your M-text mt, and it hands you back a whole new one.

and the iconic part? the copy inherits all the text properties of mt. all of them. it's not doing that thing where it copies the text and then ghosts the properties β€” no ma'am. the properties come too. periodt. πŸ‘‘


πŸŽ€ RETURN VALUE πŸŽ€

This function returns a pointer to the created copy. 🫢

like, that's it. that's the return value. a pointer. to the copy. you're welcome.


πŸ’œ SEE ALSO πŸ’œ

  • mtext_duplicate() β€” the sister function, go say hi 😭

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 🧚 no notes, no cap, it's literally just "copy the M-text, keep the properties, return the pointer" and honestly? we love a function that knows what it is. πŸ’–

Version 1.8.4 🌈 Mon Sep 25 2023 🌸 mtext_dup(3m17n) β€” k bye, drink water, go read mtext_duplicate() next πŸ’…πŸ“

πŸ“¦ where this page comes from