⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mf_strdup.hlp

📁 是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到
💻 HLP
字号:
{smcl}
{* 10aug2004}{...}
{cmd:help mata strdup()}
{hline}
{* index string duplication}{...}

{title:Title}

{p 4 4 2}
{bf:[M-5] strdup() -- String duplication}


{title:Syntax}

	{it:n} {cmd:*} {it:s}

	{it:s} {cmd:*} {it:n}

	{it:n} {cmd::*} {it:s}

	{it:s} {cmd::*} {it:n}


{p 4 4 2}
where {it:n} is real and {it:s} is string.


{title:Description}

{p 4 4 2}
There is no {cmd:strdup()} function.  Instead, the multiplication operator is
used:  

	3*"example" = "exampleexampleexample"

	   0*"this" = ""


{title:Conformability}

    {it:n}{cmd:*}{it:s}, {it:s}{cmd:*}{it:n}:
		{it:n}:  1 {it:x} 1
		{it:s}:  {it:r x c}
	   {it:result}:  {it:r x c}

    {it:n}{cmd::*}{it:s}, {it:s}{cmd::*}{it:n}:
		{it:n}:  {it:r1 x c1}
		{it:s}:  {it:r2 x c2}, {it:n} and {it:s} c-conformable
	   {it:result}:  max({it:r1},{it:r2}) {it:x} max({it:c1},{it:c2})


{title:Diagnostics}

{p 4 4 2}
If {it:n}<0, result is as if {it:n}==0:  "" is returned.

{p 4 4 2}
If {it:n} is not an integer, result is as if
{cmd:trunc(}{it:n}{cmd:)} were specified.


{title:Source code}

{p 4 4 2}
Operator is built-in.


{title:Also see}

{p 4 13 2}
Manual:  {hi:[M-5] strdup()}

{p 4 13 2}
Online:  help for 
{bf:{help m4_string:[M-4] string}}
{p_end}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -