{
  "synLogic": "int $ret \u003d $api($1, $2, $3);",
  "help": "The ns_chk_strcpy copies a string or a buffer  to a destination buffer. The source buffer can be constant or C variable while destination buffer is always a C variable.",
  "notes": "",
  "returns": "int",
  "arguments": "\u003ctable class\u003d\"newGuiTable\" style\u003d\"width:100%\" \u003e \u003ctr\u003e \u003cth\u003e Argument \u003c/th\u003e	\u003cth\u003e Description \u003c/th\u003e  \u003c/tr\u003e	\u003ctr\u003e    \u003ctd\u003e Destination \u003c/td\u003e 	\u003ctd\u003e This argument is a pointer to the destination buffer where the string or buffer from the source will be copied. This must be a C variable. \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e  \u003ctd\u003e Source \u003c/td\u003e 	\u003ctd\u003e This argument is a pointer to the source buffer or string that will be copied to the destination buffer. This can be a constant or a C variable. \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e  \u003ctd\u003e Length \u003c/td\u003e 		\u003ctd\u003e This argument is an integer that represents the maximum length of the destination buffer, in bytes. This is used to prevent buffer overflows when copying the source buffer to the destination buffer. \u003c/td\u003e \u003c/tr\u003e \u003c/table\u003e",
  "parameterization": "You cannot use standard parameterization for any arguments in this function.",
  "name": "ns_chk_strcpy",
  "syntax": "int ns_chk_strcpy(char *destination, char *src, int dest_len);",
  "javaSyntax": "int ns_chk_strcpy(String destination, String src, int dest_len);",
  "cEx": "flow()\n{\n  char* destination;\n  ns_chk_strcpy(destination, \"source_string\", 50);\n  char* ret=ns_eval_string(destination);\n  printf(\"%s\", ret);\n}",
  "javaEx": "public class flow implements NsFlow\n{\n  public int execute(NSApi nsApi) throws Exception\n  {\n    String destination=null;\n    nsApi.ns_chk_strcpy(destination, \"source_string\", 50);\n    String ret=nsApi.ns_eval_string(destination);\n    System.out.println(\"destination value is = \" + ret);\n  }\n}",
  "insertStrC": "ns_chk_strcpy (char *destination, char *src, int dest_len);",
  "insertStrJava": "ns_chk_strcpy (String destination, String src, int dest_len);",
  "description": "Copies string from source buffer to destination buffer.",
  "component":[
	  {
            "id": "$1",
            "type": "TextField",
            "label": "Destination",
        "labelVarCheckbox":"",
            "value": "",
            "css": "p-grid p-align-center w-100-p",
            "title": "Enter the Destination",
            "placeHolder": "",
            "style": "",
	    "quotes": false,
            "isDisabled": "",
            "validate": {
              "inputType": "Text",
          "required":true,
	  "method":"isValidVar(arg)"
              }
           },
	   {
            "id": "$2",
            "type": "TEXT_VAR",
            "label": "Source",
	    "quotes": false,
        "labelVarCheckbox":"Check if string with format is a C Variable.",
            "value": "",
            "css": "p-grid p-align-center w-100-p",
            "title": "Enter the Source",
            "placeHolder": "",
            "style": "",
            "isDisabled": "",
            "validate": {
              "inputType": "Text",
	      "required": true
             }
           },
	   {
            "id": "$3",
            "type": "TextField",
            "label": "Length",
        "labelVarCheckbox":"",
            "value": "",
            "css": "p-grid p-align-center w-100-p",
            "title": "Enter String Length",
            "placeHolder": "",
            "style": "",
            "isDisabled": "",
            "validate": {
              "inputType": "Number",
               "required":true,
	  	"min":"0",
		"max":"2147483647"
             }
           },
           {
			  "id": "$ret",
			  "type": "TextField",
			  "label": "Return Variable",
			  "labelVarCheckbox": "",
			  "value": "",
			  "css": "p-grid p-align-center w-100-p",
			  "title": "First character must be Alpha.\r\nOther characters are Alpha, Numeric or Underscore",
			  "placeHolder": "",
			  "style": "",
			  "isDisabled": "",
			  "validate": {
				"inputType": "Text",
			"pattern": "^[a-zA-Z][a-zA-Z0-9_]{0,63}$",
				"required": false,
				"method": "isValidVar(arg)"
			  }
			}
  ]
}
