Macaulay2 » Documentation
Packages » ForeignFunctions :: ForeignStringType String
next | previous | forward | backward | up | index | toc

ForeignStringType String -- cast a Macaulay2 string to a foreign string

Synopsis

Description

To cast a Macaulay2 string to a foreign object with a string type, give the type followed by the string.

i1 : charstar "Hello, world!"

o1 = Hello, world!

o1 : ForeignObject of type char*

Ways to use this method: